/[mdap]/network-setup.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /network-setup.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 48 - (hide annotations)
Fri Nov 16 15:54:20 2007 UTC (11 years, 7 months ago) by dpavlin
File MIME type: application/x-sh
File size: 538 byte(s)
 r58@brr:  dpavlin | 2007-11-16 16:54:16 +0100
 update config and docs to be in sync

1 dpavlin 1 #!/bin/sh
2    
3 dpavlin 42 if=eth1
4    
5     echo "setting network on $if"
6 dpavlin 44 #sudo ifconfig $if down || exit
7 dpavlin 42 sudo killall udhcpd
8     sudo rm etc/udhcpd.leases
9     sudo touch etc/udhcpd.leases
10 dpavlin 1 sleep 1
11 dpavlin 48 sudo ifconfig $if 10.0.0.1 up
12     #sudo ifconfig $if:192 192.168.1.241 netmask 255.255.255.240 up
13 dpavlin 42 sudo route add -net 224.0.0.0 netmask 240.0.0.0 dev $if
14 dpavlin 1 netstat -rn
15 dpavlin 48 #echo "starting bootp server"
16     #sudo /usr/sbin/udhcpd etc/udhcpd.conf
17 dpavlin 42 echo "starting tftp server"
18 dpavlin 48 pid=`pidof in.tftpd`
19     test ! -z "$pid" && sudo kill $pid
20 dpavlin 42 sudo /usr/sbin/in.tftpd -l -a 10.0.0.1 -s /srv/tftp -v -v

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26