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 1 by dpavlin, Sun Apr 22 11:46:47 2007 UTC revision 48 by dpavlin, Fri Nov 16 15:54:20 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 udhcpd
8    sudo rm etc/udhcpd.leases
9    sudo touch etc/udhcpd.leases
10  sleep 1  sleep 1
11  sudo ifconfig eth0 up  sudo ifconfig $if up
12  sudo route add -net netmask dev eth0  #sudo ifconfig $if:192 netmask up
13  echo "leaving"  sudo route add -net netmask dev $if
 sudo smcroute -l eth0  
 echo "joining"  
 sudo smcroute -j eth0  
14  netstat -rn  netstat -rn
15    #echo "starting bootp server"
16    #sudo /usr/sbin/udhcpd etc/udhcpd.conf
17    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

Removed from v.1  
changed lines
  Added in v.48

  ViewVC Help
Powered by ViewVC 1.1.26