Files
msm8916-openwrt/packages/ledcontrol/Makefile
T
Miguel Fuertes 104145900b Add battery monitoring and LED control features
- Implemented a battery-monitor service to track battery capacity and charging status, controlling LEDs accordingly.
- Created a battery status page in LuCI to display voltage, status, health, and estimated capacity.
- Added hotplug scripts to trigger battery status updates on power button presses and modem interface changes.
- Developed LED control scripts for modem and WiFi status indicators.
- Configured UCI defaults to enable WiFi and set up a modem interface with appropriate settings.
- Introduced a utility script for LED control with various actions (on, off, blink).
- Added a power button script for double-click shutdown functionality.
2025-10-22 11:30:28 +02:00

32 lines
671 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:function> <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/bin
$(INSTALL_BIN) ./ledcontrol.sh $(1)/usr/bin/ledcontrol
endef
$(eval $(call BuildPackage,ledcontrol))