ntripserver: move to github
[openwrt.org/packages.git] / utils / Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#
# 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))
 
comments