Browse Source

remove reboot from uci defaults

Danja Vasiliev 10 years ago
parent
commit
3adcdea61f

+ 3 - 1
openwrt/DIR505A1/etc/uci-defaults/20-set-ssid

@@ -4,7 +4,9 @@ _MAC="SuperGlue-"$_MAC
 [ $(uci get wireless.@wifi-iface[0].ssid) != $_MAC ] && (
   uci set wireless.@wifi-iface[0].ssid=$_MAC
   uci commit
-  ( sleep 1; reboot; )&
+  wifi
+  /etc/init.d/network restart
+  /etc/init.d/dhcpd restart
   )
 
 exit 0

+ 3 - 1
openwrt/TLWR710/etc/uci-defaults/20-set-ssid

@@ -4,7 +4,9 @@ _MAC="SuperGlue-"$_MAC
 [ $(uci get wireless.@wifi-iface[0].ssid) != $_MAC ] && (
   uci set wireless.@wifi-iface[0].ssid=$_MAC
   uci commit
-  ( sleep 1; reboot; )&
+  wifi
+  /etc/init.d/network restart
+  /etc/init.d/dhcpd restart
   )
 
 exit 0