[packages] restorefactory, default configuration file correction
authornunojpg <nunojpg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 8 May 2012 16:43:51 +0000 (16:43 +0000)
committernunojpg <nunojpg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 8 May 2012 16:43:51 +0000 (16:43 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@31651 3c298f89-4303-0410-b956-a3cf2f4a3e73

utils/restorefactory/files/uci_defaults_restorefactory

index 558bbd6..ac7311c 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-[ -n "$(uci -q show system.@restorefactory[0])" ] || {
+uci -q show system.@restorefactory[0]) || {
        uci add system restorefactory
        uci set system.@restorefactory[0].button=reset
        uci set system.@restorefactory[0].action=pressed