# HG changeset patch # User Christophe Lincoln # Date 1330433991 -3600 # Node ID aa473e832856fb2bc9b6e54fdd48bdcc0ba5e097 # Parent 70d08efa0334fb887f8733625693112e473595d9 network.cgi: Some small fixes diff -r 70d08efa0334 -r aa473e832856 network.cgi --- a/network.cgi Tue Feb 28 13:47:26 2012 +0100 +++ b/network.cgi Tue Feb 28 13:59:51 2012 +0100 @@ -2,7 +2,7 @@ # # Network configuration CGI interface # -# Copyright (C) 2011 SliTaz GNU/Linux - BSD License +# Copyright (C) 2012 SliTaz GNU/Linux - BSD License # # Common functions from libtazpanel @@ -205,7 +205,6 @@ WIFI_KEY_TYPE=none [ -n "$(GET key)" ] && WIFI_KEY="$(GET key)" [ -n "$(GET keytype)" ] && WIFI_KEY_TYPE="$(GET keytype)" - /etc/init.d/network.sh stop | log sed -i \ -e s'/^DHCP=.*/DHCP="yes"/' \ -e s'/^STATIC=.*/STATIC="no"/' \ @@ -214,11 +213,11 @@ -e s"/^WIFI_KEY=.*/WIFI_KEY=\"$WIFI_KEY\"/" \ -e s"/^WIFI_KEY_TYPE=.*/WIFI_KEY_TYPE=\"$WIFI_KEY_TYPE\"/" \ /etc/network.conf - # BUG: It dont scan and connect. Just configure, user must then press - # start on top. + # BUGGY #/etc/init.d/network stop | log - #sleep 2 - #/etc/init.d/network start | log + # sleep 2 + /etc/init.d/network start | log + sleep 2 . /etc/network.conf fi # ESSID names are clickable