1 # Copyright (c) 2016, prpl Foundation
3 # Permission to use, copy, modify, and/or distribute this software for any purpose with or without
4 # fee is hereby granted, provided that the above copyright notice and this permission notice appear
7 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE
8 # INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE
9 # FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
10 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
11 # ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
13 # Author: Nils Koenig <openwrt@newk.it>
15 include $(TOPDIR
)/rules.mk
17 PKG_NAME
:=wifischedule
22 PKG_MAINTAINER
:=Nils Koenig
<openwrt@newk.it
>
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/wifischedule
28 TITLE
:=Turns WiFi on and off according to a schedule
34 define Package
/wifischedule
/description
35 Turns WiFi on and off according to a schedule defined in UCI.
38 define Package
/wifischedule
/conffiles
39 /etc
/config
/wifi_schedule
45 define Build
/Configure
51 define Package
/wifischedule
/install
52 $(INSTALL_DIR
) $(1)/usr
/bin
53 $(INSTALL_BIN
) .
/net
/usr
/bin
/wifi_schedule.sh
$(1)/usr
/bin
/wifi_schedule.sh
54 $(INSTALL_DIR
) $(1)/etc
/config
55 $(INSTALL_DATA
) .
/net
/etc
/config
/wifi_schedule
$(1)/etc
/config
/wifi_schedule
58 $(eval
$(call BuildPackage
,wifischedule
))