2 # Copyright (C) 2010 segal.di.ubi.pt
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 include $(INCLUDE_DIR
)/package.mk
16 define Package
/wifitoggle
19 TITLE
:=Script to toogle WiFi with a button and UCI config
20 MAINTAINER
:=Nuno Goncalves
<nunojpg@gmail.com
>
23 define Package
/wifitoggle
/description
24 Very versatile script to toogle WiFi with a button. Allows to set
25 timeouts
, persist changes after boot
, and set leds acording to the state.
28 define Package
/wifitoggle
/conffiles
29 /etc
/config
/wifitoggle
35 define Package
/wifitoggle
/install
36 $(INSTALL_DIR
) $(1)/etc
/hotplug.d
/button
37 $(INSTALL_BIN
) .
/files
/hotplug_wifitoggle
$(1)/etc
/hotplug.d
/button
/50-wifitoggle
38 $(INSTALL_DIR
) $(1)/etc
/config
39 $(INSTALL_DATA
) .
/files
/uci_wifitoggle
$(1)/etc
/config
/wifitoggle
42 $(eval
$(call BuildPackage
,wifitoggle
))