- 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.
33 lines
1.1 KiB
Bash
33 lines
1.1 KiB
Bash
#!/bin/sh
|
|
# /etc/hotplug.d/ieee80211/99-wifi-led
|
|
# WiFi LED control based on phy0 status
|
|
|
|
case "$ACTION" in
|
|
add)
|
|
if [ "$DEVICENAME" = "phy0" ]; then
|
|
sleep 5
|
|
|
|
# Check interface status
|
|
ap_status=$(ip link show phy0-ap0 2>/dev/null | grep -c "state UP")
|
|
sta_status=$(ip link show phy0-sta0 2>/dev/null | grep -c "state UP")
|
|
|
|
if [ "$ap_status" -gt 0 ] || [ "$sta_status" -gt 0 ]; then
|
|
ledcontrol red:wlan on 2>/dev/null || true
|
|
ledcontrol green:wlan on 2>/dev/null || true
|
|
logger -t wifi-led "phy0 interface UP, blue LED ON"
|
|
else
|
|
ledcontrol red:wlan on 2>/dev/null || true
|
|
ledcontrol green:wlan off 2>/dev/null || true
|
|
logger -t wifi-led "No phy0 interface UP, blue LED OFF"
|
|
fi
|
|
fi
|
|
;;
|
|
remove)
|
|
if [ "$DEVICENAME" = "phy0" ]; then
|
|
ledcontrol red:wlan off 2>/dev/null || true
|
|
ledcontrol green:wlan off 2>/dev/null || true
|
|
logger -t wifi-led "phy0 removed, blue LED OFF"
|
|
fi
|
|
;;
|
|
esac
|