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
14 PKG_MAINTAINER:=Roger D <rogerdammit@gmail.com>
17 include $(INCLUDE_DIR)/package.mk
19 define Package/watchcat
22 TITLE:=Enable the configuration of programed reboots
25 define Package/watchcat/description
26 Allows to configure a periodically reboot, or after losing internet connectivity. Configured trough UCI /etc/config/system.
29 define Package/watchcat/conffiles
36 define Package/watchcat/install
37 $(INSTALL_DIR) $(1)/etc/init.d
38 $(INSTALL_BIN) ./files/initd_watchcat $(1)/etc/init.d/watchcat
39 $(INSTALL_DIR) $(1)/usr/bin
40 $(INSTALL_BIN) ./files/watchcat.sh $(1)/usr/bin/watchcat.sh
41 $(INSTALL_DIR) $(1)/etc/uci-defaults
42 $(INSTALL_BIN) ./files/uci_defaults_watchcat $(1)/etc/uci-defaults/50-watchcat
45 $(eval $(call BuildPackage,watchcat))