restorefactory, default configuration file correction
authorNuno Goncalves <[email protected]>
Tue, 8 May 2012 16:43:51 +0000 (16:43 +0000)
committerNuno Goncalves <[email protected]>
Tue, 8 May 2012 16:43:51 +0000 (16:43 +0000)
SVN-Revision: 31651

utils/restorefactory/files/uci_defaults_restorefactory

index 558bbd6bd8c88c44a58c13bee5568009050fbd5a..ac7311cb6705c6d21de6f6c5a8a88a6fc5f11c4c 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