1
0

Makefile 1.1 KB

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