2 # Copyright (C) 2010-2014 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
16 PKG_MAINTAINER
:=Nuno Goncalves
<nunojpg@gmail.com
>
18 include $(INCLUDE_DIR
)/package.mk
20 define Package
/wifitoggle
23 TITLE
:=Script to toggle Wi-Fi with a button and UCI config
26 define Package
/wifitoggle
/description
27 Very versatile script to toggle Wi-Fi with a button. Allows to set
28 timeouts
, persist changes after boot
, and set LEDs according to the state.
31 define Package
/wifitoggle
/conffiles
32 /etc
/config
/wifitoggle
38 define Package
/wifitoggle
/install
39 $(INSTALL_DIR
) $(1)/etc
/hotplug.d
/button
40 $(INSTALL_BIN
) .
/files
/wifitoggle.hotplug
$(1)/etc
/hotplug.d
/button
/50-wifitoggle
41 $(INSTALL_DIR
) $(1)/etc
/config
42 $(INSTALL_DATA
) .
/files
/wifitoggle.config
$(1)/etc
/config
/wifitoggle
45 $(eval
$(call BuildPackage
,wifitoggle
))