Makefile (1159B)
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 10 include $(TOPDIR)/rules.mk 11 12 PKG_NAME:=wifitoggle 13 PKG_VERSION:=1 14 PKG_RELEASE:=5 15 PKG_LICENSE:=GPL-2.0+ 16 17 PKG_MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com> 18 19 include $(INCLUDE_DIR)/package.mk 20 21 define Package/wifitoggle 22 SECTION:=utils 23 CATEGORY:=Utilities 24 TITLE:=Script to toggle Wi-Fi with a button and UCI config 25 endef 26 27 define Package/wifitoggle/description 28 Very versatile script to toggle Wi-Fi with a button. Allows to set 29 timeouts, persist changes after boot, and set LEDs according to the state. 30 endef 31 32 define Package/wifitoggle/conffiles 33 /etc/config/wifitoggle 34 endef 35 36 define Build/Compile 37 endef 38 39 define Package/wifitoggle/install 40 $(INSTALL_DIR) $(1)/etc/hotplug.d/button 41 $(INSTALL_BIN) ./files/wifitoggle.hotplug $(1)/etc/hotplug.d/button/50-wifitoggle 42 $(INSTALL_DIR) $(1)/etc/config 43 $(INSTALL_DATA) ./files/wifitoggle.config $(1)/etc/config/wifitoggle 44 endef 45 46 $(eval $(call BuildPackage,wifitoggle))