You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.6 KiB

  1. # Copyright (c) 2016, prpl Foundation
  2. #
  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
  5. # in all copies.
  6. #
  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.
  12. #
  13. # Author: Nils Koenig <openwrt@newk.it>
  14. include $(TOPDIR)/rules.mk
  15. PKG_NAME:=wifischedule
  16. PKG_VERSION:=1
  17. PKG_RELEASE:=1
  18. PKG_LICENSE:=PRPL
  19. PKG_MAINTAINER:=Nils Koenig <openwrt@newk.it>
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/wifischedule
  22. SUBMENU:=wireless
  23. TITLE:=Turns WiFi on and off according to a schedule
  24. SECTION:=net
  25. CATEGORY:=Network
  26. endef
  27. define Package/wifischedule/description
  28. Turns WiFi on and off according to a schedule defined in UCI.
  29. endef
  30. define Package/wifischedule/conffiles
  31. /etc/config/wifi_schedule
  32. endef
  33. define Build/Compile
  34. endef
  35. define Package/wifischedule/install
  36. $(INSTALL_DIR) $(1)/usr/bin
  37. $(INSTALL_BIN) ./net/usr/bin/wifi_schedule.sh $(1)/usr/bin/wifi_schedule.sh
  38. $(INSTALL_DIR) $(1)/etc/config
  39. $(INSTALL_DATA) ./net/etc/config/wifi_schedule $(1)/etc/config/wifi_schedule
  40. endef
  41. $(eval $(call BuildPackage,wifischedule))