2 # Copyright (C) 2010 segal.di.ubi.pt
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=restorefactory
14 include $(INCLUDE_DIR
)/package.mk
16 define Package
/restorefactory
19 TITLE
:=Mimic original functionality of the reset button
20 MAINTAINER
:=Nuno Goncalves
<nunojpg@gmail.com
>
23 define Package
/restoreyfactory
/description
24 RestoreFactory handles the reset button event and issues a
"firstboot" command.
25 Button and wait time can be configured with a UCI file.
31 define 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
/uci-defaults
35 $(INSTALL_BIN
) .
/files
/uci_defaults_restorefactory
$(1)/etc
/uci-defaults
/50-restorefactory
38 $(eval
$(call BuildPackage
,restorefactory
))