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 41 by dpavlin, Sun Apr 22 11:46:47 2007 UTC revision 42 by dpavlin, Fri Nov 16 13:04:56 2007 UTC
# Line 1  Line 1 
1  #!/bin/sh  #!/bin/sh
3  sudo ifconfig ath0 down  if=eth1
4  #sudo dhclient eth0  
5  sudo ifconfig eth0 down  echo "setting network on $if"
6    sudo ifconfig $if down || exit
7    sudo killall in.tftpd
8    sudo killall udhcpd
9    sudo rm etc/udhcpd.leases
10    sudo touch etc/udhcpd.leases
11  sleep 1  sleep 1
12  sudo ifconfig eth0 up  sudo ifconfig $if netmask up
13  sudo route add -net netmask dev eth0  sudo ifconfig $if:10 up
14  echo "leaving"  sudo route add -net netmask dev $if
 sudo smcroute -l eth0  
 echo "joining"  
 sudo smcroute -j eth0  
15  netstat -rn  netstat -rn
16    echo "starting bootp server"
17    sudo /usr/sbin/udhcpd etc/udhcpd.conf
18    echo "starting tftp server"
19    sudo /usr/sbin/in.tftpd -l -a -s /srv/tftp -v -v

Removed from v.41  
changed lines
  Added in v.42

  ViewVC Help
Powered by ViewVC 1.1.26