- 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.
15 lines
427 B
Bash
15 lines
427 B
Bash
#!/bin/sh
|
|
# /etc/hotplug.d/button/50-battery-show
|
|
|
|
[ "$BUTTON" = "power" ] || exit 0
|
|
[ "$ACTION" = "pressed" ] || exit 0
|
|
|
|
charging=$(cat /sys/class/power_supply/pm8916-lbc-chgr/online 2>/dev/null || echo 0)
|
|
|
|
if [ "$charging" = "0" ]; then
|
|
[ -f /var/run/battery-monitor.pid ] && {
|
|
kill -USR1 $(cat /var/run/battery-monitor.pid) 2>/dev/null
|
|
logger -t button-battery "SIGUSR1 sent to battery-monitor"
|
|
}
|
|
fi
|