This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /network-setup.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 44 by dpavlin, Fri Nov 16 14:45:10 2007 UTC revision 60 by dpavlin, Fri Nov 16 23:44:51 2007 UTC
# Line 4  if=eth1 Line 4  if=eth1
5  echo "setting network on $if"  echo "setting network on $if"
6  #sudo ifconfig $if down || exit  #sudo ifconfig $if down || exit
 sudo killall in.tftpd  
7  sudo killall udhcpd  sudo killall udhcpd
8  sudo rm etc/udhcpd.leases  sudo rm etc/udhcpd.leases
9  sudo touch etc/udhcpd.leases  sudo touch etc/udhcpd.leases
10  sleep 1  sleep 1
11  sudo ifconfig $if netmask up  sudo ifconfig $if up
12  sudo ifconfig $if:10 up  #sudo ifconfig $if:192 netmask up
13  sudo route add -net netmask dev $if  sudo route add -net netmask dev $if
14  netstat -rn  netstat -rn
15  echo "starting bootp server"  pid=`pidof dhcpd`
16  sudo /usr/sbin/udhcpd etc/udhcpd.conf  if [ -z "$pid" ] ; then
17            echo "starting bootp server"
18            sudo /usr/sbin/udhcpd etc/udhcpd.conf
19    fi
20  echo "starting tftp server"  echo "starting tftp server"
21    pid=`pidof in.tftpd`
22    test ! -z "$pid" && sudo kill $pid
23  sudo /usr/sbin/in.tftpd -l -a -s /srv/tftp -v -v  sudo /usr/sbin/in.tftpd -l -a -s /srv/tftp -v -v

Removed from v.44  
changed lines
  Added in v.60

  ViewVC Help
Powered by ViewVC 1.1.26