Files
msm8916-openwrt/msm89xx/base-files/etc/hotplug.d/iface/99-modem-led
T
Miguel Fuertes 81a703fcc4 Add support for MF68E and M9S devices with necessary patches and configurations
- Introduced device tree patches for MF68E and M9S, adding their respective .dts files and updating the Makefile to include them.
- Implemented framebuffer driver for the GC9107 LCD controller, enabling display support for the MF68E and M9S devices.
- Created UCI defaults for modem management, including network interface configurations and LED handling for modem and WiFi indicators.
- Added scripts for automatic formatting of the rootfs_data partition and generating GPT images for MSM8916 eMMC.
- Included hotplug scripts for managing LED states based on device actions.
- Updated README with instructions for re-integrating the deprecated device support into the main build.
2026-02-24 10:46:35 +01:00

16 lines
256 B
Bash

#!/bin/sh
LED="/sys/class/leds/green:wan"
[ -d "$LED" ] || exit 0
case "$ACTION:$INTERFACE" in
ifup:modem)
echo none > "$LED/trigger"
echo 1 > "$LED/brightness"
;;
ifdown:modem)
echo none > "$LED/trigger"
echo 0 > "$LED/brightness"
;;
esac