- 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.
34 lines
451 B
Bash
34 lines
451 B
Bash
#!/bin/sh
|
|
|
|
[ "${ACTION}" = "released" ] || exit 0
|
|
|
|
# Double-click Shutdown
|
|
# Works standalone or with display-manager
|
|
|
|
# Hardcoded values
|
|
lockfile="/tmp/toff.lock"
|
|
delay=1
|
|
|
|
shutdown() {
|
|
logger -t poweroff "Powering off..."
|
|
|
|
sync
|
|
/sbin/poweroff
|
|
}
|
|
|
|
touch_lock() {
|
|
touch "$lockfile"
|
|
sleep $delay
|
|
rm -f "$lockfile"
|
|
}
|
|
|
|
if [ -e "$lockfile" ]; then
|
|
rm -f "$lockfile"
|
|
sleep $delay
|
|
shutdown
|
|
else
|
|
touch_lock &
|
|
fi
|
|
|
|
exit 0
|