2 # Copyright (C) 2010-2012 OpenWrt.org
3 # Copyright (C) 2010 segal.di.ubi.pt
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 include $(INCLUDE_DIR)/package.mk
17 define Package/wifitoggle
20 TITLE:=Script to toggle Wi-Fi with a button and UCI config
21 MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
24 define Package/wifitoggle/description
25 Very versatile script to toggle Wi-Fi with a button. Allows to set
26 timeouts, persist changes after boot, and set LEDs according to the state.
29 define Package/wifitoggle/conffiles
30 /etc/config/wifitoggle
36 define Package/wifitoggle/install
37 $(INSTALL_DIR) $(1)/etc/hotplug.d/button
38 $(INSTALL_BIN) ./files/wifitoggle.hotplug $(1)/etc/hotplug.d/button/50-wifitoggle
39 $(INSTALL_DIR) $(1)/etc/config
40 $(INSTALL_DATA) ./files/wifitoggle.config $(1)/etc/config/wifitoggle
43 $(eval $(call BuildPackage,wifitoggle))