X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;ds=sidebyside;f=bin%2Fnetwork.sh;h=5f884613195f0b9ff8f2147f465b8ffde1573498;hb=5304303207a36a4533f8837e22b5bf70b652ff0f;hp=0fedca25832a78e91bf4a98c45147765aacab319;hpb=f8f2d363c9a5aa6d169ef2e246d7849d0da21cea;p=config
diff --git a/bin/network.sh b/bin/network.sh
index 0fedca2..5f88461 100755
--- a/bin/network.sh
+++ b/bin/network.sh
@@ -29,19 +29,19 @@ elif [ "${1}" = 'wifi_scan' ]; then
elif [ "${1}" = 'wifi_connect_open' ]; then
ensure_wifi_on
iw dev "$wifi_interface" connect "${2}"
- #dhclient "$wifi_interface"
+ dhclient "$wifi_interface"
#ip route delete default
#ip route add default via 192.168.1.1 dev wls1
elif [ "${1}" = 'wifi_connect_wep_ascii' ]; then
ensure_wifi_on
iw dev "$wifi_interface" connect "${2}" key 0:"${3}"
- #dhclient "$wifi_interface"
+ dhclient "$wifi_interface"
elif [ "${1}" = 'wifi_connect_wep_hex' ]; then
ensure_wifi_on
iw dev "$wifi_interface" connect "${2}" key d:0:"${3}"
- #dhclient "$wifi_interface"
+ dhclient "$wifi_interface"
elif [ "${1}" = 'wifi_connect_wpa' ]; then
ensure_wifi_on