38 lines
922 B
Makefile
38 lines
922 B
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=ledcontrol
|
|
PKG_VERSION:=1.0
|
|
PKG_RELEASE:=1
|
|
PKG_LICENSE:=GPL-2.0
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/ledcontrol
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
TITLE:=Simple LED control utility
|
|
DEPENDS:=
|
|
endef
|
|
|
|
define Package/ledcontrol/description
|
|
Simple utility to control device LEDs via sysfs
|
|
Usage: ledcontrol <color> <on|off|blink|blink_fast>
|
|
Includes hotplug scripts for WiFi and modem LED management
|
|
endef
|
|
|
|
define Build/Compile
|
|
endef
|
|
|
|
define Package/ledcontrol/install
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
$(INSTALL_BIN) ./files/ledcontrol $(1)/usr/sbin/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/hotplug.d/ieee80211
|
|
$(INSTALL_DATA) ./files/etc/hotplug.d/ieee80211/99-wifi-led $(1)/etc/hotplug.d/ieee80211/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/hotplug.d/iface
|
|
$(INSTALL_DATA) ./files/etc/hotplug.d/iface/99-modem-led $(1)/etc/hotplug.d/iface/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,ledcontrol))
|