--- network-setup.sh 2007/11/16 15:54:20 48 +++ network-setup.sh 2007/11/16 23:44:51 60 @@ -8,12 +8,15 @@ sudo rm etc/udhcpd.leases sudo touch etc/udhcpd.leases sleep 1 -sudo ifconfig $if 10.0.0.1 up +sudo ifconfig $if 10.0.0.100 up #sudo ifconfig $if:192 192.168.1.241 netmask 255.255.255.240 up sudo route add -net 224.0.0.0 netmask 240.0.0.0 dev $if netstat -rn -#echo "starting bootp server" -#sudo /usr/sbin/udhcpd etc/udhcpd.conf +pid=`pidof dhcpd` +if [ -z "$pid" ] ; then + echo "starting bootp server" + sudo /usr/sbin/udhcpd etc/udhcpd.conf +fi echo "starting tftp server" pid=`pidof in.tftpd` test ! -z "$pid" && sudo kill $pid