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.

45 lines
1.1 KiB

  1. #
  2. # Copyright (C) 2010-2014 OpenWrt.org
  3. # Copyright (C) 2010 segal.di.ubi.pt
  4. #
  5. # This is free software, licensed under the GNU General Public License v2.
  6. # See /LICENSE for more information.
  7. #
  8. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=wifitoggle
  10. PKG_VERSION:=1
  11. PKG_RELEASE:=4
  12. PKG_LICENSE:=GPL-2.0+
  13. PKG_MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
  14. include $(INCLUDE_DIR)/package.mk
  15. define Package/wifitoggle
  16. SECTION:=utils
  17. CATEGORY:=Utilities
  18. TITLE:=Script to toggle Wi-Fi with a button and UCI config
  19. endef
  20. define Package/wifitoggle/description
  21. Very versatile script to toggle Wi-Fi with a button. Allows to set
  22. timeouts, persist changes after boot, and set LEDs according to the state.
  23. endef
  24. define Package/wifitoggle/conffiles
  25. /etc/config/wifitoggle
  26. endef
  27. define Build/Compile
  28. endef
  29. define Package/wifitoggle/install
  30. $(INSTALL_DIR) $(1)/etc/hotplug.d/button
  31. $(INSTALL_BIN) ./files/wifitoggle.hotplug $(1)/etc/hotplug.d/button/50-wifitoggle
  32. $(INSTALL_DIR) $(1)/etc/config
  33. $(INSTALL_DATA) ./files/wifitoggle.config $(1)/etc/config/wifitoggle
  34. endef
  35. $(eval $(call BuildPackage,wifitoggle))