fix hanging wireless config reload in webif, close #353
authorFelix Fietkau <nbd@openwrt.org>
Wed, 8 Mar 2006 02:54:13 +0000 (02:54 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 8 Mar 2006 02:54:13 +0000 (02:54 +0000)
SVN-Revision: 3334

openwrt/package/webif/files/usr/lib/webif/apply.sh

index 31d6ae3217f15898cd30acfd67ac3062e0d8a4aa..d8d846735278ea9e1827b36432f2058eaee87e04 100644 (file)
@@ -35,8 +35,10 @@ reload_network() {
 reload_wireless() {
        echo '@TR<<Reloading>> @TR<<wireless settings>> ...'
        killall nas >&- 2>&- && sleep 2
-       /sbin/wifi
-       [ -f /etc/init.d/S41wpa ] && /etc/init.d/S41wpa
+       (
+               /sbin/wifi
+               [ -f /etc/init.d/S41wpa ] && /etc/init.d/S41wpa
+       ) >&- 2>&- <&-
 }
 
 reload_system() {