From: Nuno Goncalves Date: Tue, 8 May 2012 16:43:51 +0000 (+0000) Subject: [packages] restorefactory, default configuration file correction X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=e3679f35ad386cc551aabb78e40af6f5777157f8;p=openwrt%2Fsvn-archive%2Farchive.git [packages] restorefactory, default configuration file correction SVN-Revision: 31651 --- diff --git a/utils/restorefactory/files/uci_defaults_restorefactory b/utils/restorefactory/files/uci_defaults_restorefactory index 558bbd6bd8..ac7311cb67 100755 --- a/utils/restorefactory/files/uci_defaults_restorefactory +++ b/utils/restorefactory/files/uci_defaults_restorefactory @@ -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