#!/bin/bash # # If you're not root, you could not launching this script if [ "`whoami`" != "root" ]; then echo "You must launch this script with root privileges. Enter root password." exec su -c "$0 $@" exit 1 fi # source function library . /etc/rc.d/init.d/functions RETVAL=0 start () { modprobe CDCEther /etc/init.d/network start rm -f /etc/dhcpc/dhcpcd-eth1.pid dhcpcd eth1 cp -f /etc/resolv.conf.ok /etc/resolv.conf /etc/init.d/named start /etc/init.d/shorewall start } stop () { /etc/init.d/network stop rm -f /etc/dhcpc/dhcpcd-eth1.pid killall dhcpcd rmmod CDCEther RETVAL=$? } case "$1" in start) start ;; stop) stop ;; restart) stop start ;; *) gprintf "Usage: modem {start|stop|restart}\n" exit 1 esac exit $RETVAL /etc/resolv.conf.ok search system-linux.net # parce que j'ai un DNS nameserver 82.67.59.175 # parce que j'ai un DNS nameserver 192.168.1.1 # parce que j'ai un DNS
phpMyVisites : logiciel gratuit de mesure d'audience et de statistiques de sites Internet (licence libre GPL, logiciel en php/MySQL)