tazpanel rev 241
network.cgi: Some small fixes
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Feb 28 13:59:51 2012 +0100 (2012-02-28) |
parents | 70d08efa0334 |
children | 460c608c35ff |
files | network.cgi |
line diff
1.1 --- a/network.cgi Tue Feb 28 13:47:26 2012 +0100 1.2 +++ b/network.cgi Tue Feb 28 13:59:51 2012 +0100 1.3 @@ -2,7 +2,7 @@ 1.4 # 1.5 # Network configuration CGI interface 1.6 # 1.7 -# Copyright (C) 2011 SliTaz GNU/Linux - BSD License 1.8 +# Copyright (C) 2012 SliTaz GNU/Linux - BSD License 1.9 # 1.10 1.11 # Common functions from libtazpanel 1.12 @@ -205,7 +205,6 @@ 1.13 WIFI_KEY_TYPE=none 1.14 [ -n "$(GET key)" ] && WIFI_KEY="$(GET key)" 1.15 [ -n "$(GET keytype)" ] && WIFI_KEY_TYPE="$(GET keytype)" 1.16 - /etc/init.d/network.sh stop | log 1.17 sed -i \ 1.18 -e s'/^DHCP=.*/DHCP="yes"/' \ 1.19 -e s'/^STATIC=.*/STATIC="no"/' \ 1.20 @@ -214,11 +213,11 @@ 1.21 -e s"/^WIFI_KEY=.*/WIFI_KEY=\"$WIFI_KEY\"/" \ 1.22 -e s"/^WIFI_KEY_TYPE=.*/WIFI_KEY_TYPE=\"$WIFI_KEY_TYPE\"/" \ 1.23 /etc/network.conf 1.24 - # BUG: It dont scan and connect. Just configure, user must then press 1.25 - # start on top. 1.26 + # BUGGY 1.27 #/etc/init.d/network stop | log 1.28 - #sleep 2 1.29 - #/etc/init.d/network start | log 1.30 + # sleep 2 1.31 + /etc/init.d/network start | log 1.32 + sleep 2 1.33 . /etc/network.conf 1.34 fi 1.35 # ESSID names are clickable