home
·
contact
·
privacy
projects
/
config
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Setup script for daily reboots.
[config]
/
bin
/
network.sh
diff --git
a/bin/network.sh
b/bin/network.sh
index 37514c17f3b80538acd18841c4e362899222e897..5f884613195f0b9ff8f2147f465b8ffde1573498 100755
(executable)
--- a/
bin/network.sh
+++ b/
bin/network.sh
@@
-29,17
+29,19
@@
elif [ "${1}" = 'wifi_scan' ]; then
elif [ "${1}" = 'wifi_connect_open' ]; then
ensure_wifi_on
iw dev "$wifi_interface" connect "${2}"
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}"
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}"
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
elif [ "${1}" = 'wifi_connect_wpa' ]; then
ensure_wifi_on