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 47 by dpavlin, Fri Nov 16 14:45:10 2007 UTC revision 48 by dpavlin, Fri Nov 16 15:54:20 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"  #echo "starting bootp server"
16  sudo /usr/sbin/udhcpd etc/udhcpd.conf  #sudo /usr/sbin/udhcpd etc/udhcpd.conf
17  echo "starting tftp server"  echo "starting tftp server"
18    pid=`pidof in.tftpd`
19    test ! -z "$pid" && sudo kill $pid
20  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.47  
changed lines
  Added in v.48

  ViewVC Help
Powered by ViewVC 1.1.26