|
@@ -46,7 +46,7 @@ WIFI_CONFIG=/etc/wpa_supplicant/wpa_supplicant.conf
|
46
|
46
|
WIFI_NETWORKS_FILE=~/${PROJECT_NAME}-wifi.cfg
|
47
|
47
|
NETWORKS_INTERACTIVE=
|
48
|
48
|
WIFI_DISABLE=
|
49
|
|
-NODOWN=
|
|
49
|
+WAIT_SEC=
|
50
|
50
|
|
51
|
51
|
IFACE=
|
52
|
52
|
IFACE_SECONDARY=
|
|
@@ -87,9 +87,9 @@ do
|
87
|
87
|
wifi_interface_specified=1
|
88
|
88
|
write_config_param "WIFI_INTERFACE" "$WIFI_INTERFACE"
|
89
|
89
|
;;
|
90
|
|
- --nodown)
|
|
90
|
+ --wait|--sleep|--pause)
|
91
|
91
|
shift
|
92
|
|
- NODOWN=1
|
|
92
|
+ WAIT_SEC=${1}
|
93
|
93
|
;;
|
94
|
94
|
-t|--type)
|
95
|
95
|
shift
|
|
@@ -138,11 +138,11 @@ if [ ${NETWORKS_INTERACTIVE} ]; then
|
138
|
138
|
fi
|
139
|
139
|
|
140
|
140
|
if [ ! ${wifi_interface_specified} ]; then
|
141
|
|
- if [ ! $NODOWN ]; then
|
|
141
|
+ if [ ! $WAIT_SEC ]; then
|
142
|
142
|
wpa_action ${WIFI_INTERFACE} stop
|
143
|
143
|
wpa_cli -i ${WIFI_INTERFACE} terminate
|
144
|
144
|
else
|
145
|
|
- sleep 5
|
|
145
|
+ sleep ${WAIT_SEC}
|
146
|
146
|
fi
|
147
|
147
|
update_wifi_adaptors
|
148
|
148
|
if [ ! $IFACE ]; then
|