move CPE specific stuff back into CWMP::Vendor
[perl-cwmp.git] / scripts / net.sh
1
2 if [ -z "$1" ] ; then
3         eth=eth0
4 #       eth=ath0:0
5 else
6         eth=$1
7 fi
8
9 # new 192.168.1.240/28 network
10
11 sudo ifconfig $eth down
12 sudo ifconfig $eth 192.168.1.241 up
13 # backup network (thompson 10.0.0.138)
14 sudo ifconfig $eth:10 10.0.0.100 up
15 sudo route add -net 192.168.1.240/28 dev $eth
16 echo "Setup of $eth to 192.168.1.90 ready"