- 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.
30 lines
624 B
Bash
30 lines
624 B
Bash
#!/bin/sh /etc/rc.common
|
|
START=15
|
|
NAME=rootfs-resizer
|
|
PROG="/usr/bin/rootfs-resizer"
|
|
FLAG="/RESIZED"
|
|
|
|
led() { command -v ledcontrol >/dev/null 2>&1 && ledcontrol "$@" || true; }
|
|
|
|
start() {
|
|
[ -f "$FLAG" ] && return 0
|
|
|
|
led red off
|
|
led blue blink
|
|
logger -t "$NAME" "Starting rootfs resize"
|
|
|
|
if "$PROG"; then
|
|
logger -t "$NAME" "Resize successful, rebooting"
|
|
touch "$FLAG"
|
|
sync
|
|
led blue off;
|
|
led green on; sleep 2
|
|
led green blink; sleep 1
|
|
reboot -f
|
|
else
|
|
logger -t "$NAME" "Resize FAILED"
|
|
led red on
|
|
return 1
|
|
fi
|
|
}
|