[ADD] conf for archlinux, <init>
[arrow.git] / archlinux_conf / home / .bin / shell / dowork
blob51afcaa1ff1052b40dadb7f2d36a3a7e205cc9c8
1 #!/bin/bash
2 function do_eth0 {
3 sudo ifconfig ${ETH_LAN} 192.168.1.41
6 function do_eth1 {
7 # sudo ifconfig eth1 192.168.1.51
8 sudo dhclient ${ETH_WAN}
9 sudo killall dhclient
10 sudo ifconfig ${ETH_WAN} mtu 1220
11 sudo ip route add to default via 192.168.1.1 dev ${ETH_WAN}
14 if [ "$1" = "1" ]; then
15 do_eth0
17 if [ "$1" = "2" ]; then
18 do_eth1
20 if [ "$1" = "3" ]; then
21 do_eth0
22 do_eth1