[packages] aircrack-ng: implement --ignore-negative-one option to cope with cfg80211...
[openwrt/svn-archive/archive.git] / utils / restorefactory / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=restorefactory
11 PKG_VERSION:=1
12 PKG_RELEASE:=5
13
14 include $(INCLUDE_DIR)/package.mk
15
16 define Package/restorefactory
17 SECTION:=utils
18 CATEGORY:=Utilities
19 TITLE:=Mimic original functionality of the reset button
20 MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
21 endef
22
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.
26 endef
27
28 define Build/Compile
29 endef
30
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
36 endef
37
38 $(eval $(call BuildPackage,restorefactory))