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 +} +