juhosg fb5b136fb6 packages/restorefactory: fix trailing whitespace
Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@40268 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-03-27 07:06:31 +00:00

40 lines
1.0 KiB
Makefile

#
# 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
PKG_RELEASE:=6
PKG_MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
include $(INCLUDE_DIR)/package.mk
define Package/restorefactory
SECTION:=utils
CATEGORY:=Utilities
TITLE:=Mimic original functionality of the reset button
endef
define Package/restorefactory/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
$(INSTALL_DIR) $(1)/etc/hotplug.d/button
$(INSTALL_BIN) ./files/hotplug_restorefactory $(1)/etc/hotplug.d/button/50-restorefactory
$(INSTALL_DIR) $(1)/etc/uci-defaults
$(INSTALL_BIN) ./files/uci_defaults_restorefactory $(1)/etc/uci-defaults/50-restorefactory
endef
$(eval $(call BuildPackage,restorefactory))