2010-04-22 15:55:55 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2010 segal.di.ubi.pt
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=restorefactory
|
|
|
|
PKG_VERSION:=1
|
2011-01-04 13:04:33 +00:00
|
|
|
PKG_RELEASE:=3
|
2010-04-22 15:55:55 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/restorefactory
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=Mimic original functionality of the reset button
|
|
|
|
MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/restoreyfactory/description
|
|
|
|
RestoreFactory handles the reset button event and issues a "firstboot" command.
|
|
|
|
Button and wait time can be configured with a UCI file.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/restorefactory/install
|
2010-12-19 01:17:57 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/hotplug.d/button
|
|
|
|
$(INSTALL_BIN) ./files/hotplug_restorefactory $(1)/etc/hotplug.d/button/50-restorefactory
|
|
|
|
$(INSTALL_DIR) $(1)/etc/defaults
|
2011-01-04 13:04:33 +00:00
|
|
|
$(INSTALL_BIN) ./files/uci_defaults_restorefactory $(1)/etc/uci-defaults/50-restorefactory
|
2010-04-22 15:55:55 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,restorefactory))
|