From: Nuno Goncalves Date: Wed, 5 Jan 2011 15:34:05 +0000 (+0000) Subject: restorefactory: update to release 5 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=63e09e6540bbff04576f9355cbd196e9d7858a9f;p=openwrt%2Fsvn-archive%2Fpackages.git restorefactory: update to release 5 SVN-Revision: 24910 --- diff --git a/utils/restorefactory/Makefile b/utils/restorefactory/Makefile index 5823df258..a3fda806e 100644 --- a/utils/restorefactory/Makefile +++ b/utils/restorefactory/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=restorefactory PKG_VERSION:=1 -PKG_RELEASE:=3 +PKG_RELEASE:=5 include $(INCLUDE_DIR)/package.mk diff --git a/utils/restorefactory/files/uci_defaults_restorefactory b/utils/restorefactory/files/uci_defaults_restorefactory index ad27b4808..558bbd6bd 100755 --- a/utils/restorefactory/files/uci_defaults_restorefactory +++ b/utils/restorefactory/files/uci_defaults_restorefactory @@ -1,6 +1,10 @@ #!/bin/sh -uci add system restorefactory -uci set system.@restorefactory[0].button=reset -uci set system.@restorefactory[0].action=pressed -uci set system.@restorefactory[0].timeout=5 -uci commit + +[ -n "$(uci -q show system.@restorefactory[0])" ] || { + uci add system restorefactory + uci set system.@restorefactory[0].button=reset + uci set system.@restorefactory[0].action=pressed + uci set system.@restorefactory[0].timeout=5 + uci commit +} +