source: packages/utils/restorefactory/Makefile @ 24896

Last change on this file since 24896 was 24896, checked in by nunojpg, 5 years ago

[packages] restorefactory: added default settings

File size: 1022 bytes
Line 
1#
2# Copyright (C) 2010 segal.di.ubi.pt
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=restorefactory
11PKG_VERSION:=1
12PKG_RELEASE:=3
13
14include $(INCLUDE_DIR)/package.mk
15
16define Package/restorefactory
17  SECTION:=utils
18  CATEGORY:=Utilities
19  TITLE:=Mimic original functionality of the reset button
20  MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
21endef
22
23define Package/restoreyfactory/description
24RestoreFactory handles the reset button event and issues a "firstboot" command.
25Button and wait time can be configured with a UCI file.
26endef
27
28define Build/Compile
29endef
30
31define Package/restorefactory/install
32        $(INSTALL_DIR) $(1)/etc/hotplug.d/button
33        $(INSTALL_BIN) ./files/hotplug_restorefactory $(1)/etc/hotplug.d/button/50-restorefactory
34        $(INSTALL_DIR) $(1)/etc/defaults
35        $(INSTALL_BIN) ./files/uci_defaults_restorefactory $(1)/etc/uci-defaults/50-restorefactory
36endef
37
38$(eval $(call BuildPackage,restorefactory))
Note: See TracBrowser for help on using the repository browser.