2010-04-22 16:31:05 +00:00
|
|
|
#
|
2011-11-18 23:13:31 +00:00
|
|
|
# Copyright (C) 2010-2011 OpenWrt.org
|
2010-04-22 16:31:05 +00:00
|
|
|
# Copyright (C) 2010 segal.di.ubi.pt
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=wifitoggle
|
|
|
|
PKG_VERSION:=1
|
2010-12-19 05:30:36 +00:00
|
|
|
PKG_RELEASE:=2
|
2010-04-22 16:31:05 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/wifitoggle
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=Script to toogle WiFi with a button and UCI config
|
|
|
|
MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/wifitoggle/description
|
|
|
|
Very versatile script to toogle WiFi with a button. Allows to set
|
|
|
|
timeouts, persist changes after boot, and set leds acording to the state.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/wifitoggle/conffiles
|
|
|
|
/etc/config/wifitoggle
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/wifitoggle/install
|
2010-12-19 05:30:36 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/hotplug.d/button
|
2011-11-18 23:13:31 +00:00
|
|
|
$(INSTALL_BIN) ./files/wifitoggle.hotplug $(1)/etc/hotplug.d/button/50-wifitoggle
|
2010-12-19 05:30:36 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
2011-11-18 23:13:31 +00:00
|
|
|
$(INSTALL_DATA) ./files/wifitoggle.config $(1)/etc/config/wifitoggle
|
2010-04-22 16:31:05 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,wifitoggle))
|