luckfox-pico-sdk/project/cfg/BoardConfig_IPC/overlay/overlay-luckfox-config/etc/init.d/S99luckfoxconfigload
2024-11-18 21:03:15 +08:00

23 lines
406 B
Bash
Executable File

#!/bin/sh
load_luckfoxconfig() {
if [ -f /usr/bin/luckfox-config ]; then
luckfox-config load
fi
if [ "$(cat /proc/device-tree/model)" == "Luckfox Pico Ultra" ] ||
[ "$(cat /proc/device-tree/model)" == "Luckfox Pico Ultra W" ]; then
if [ -f /usr/bin/luckfox_switch_rgb_resolution ]; then
luckfox_switch_rgb_resolution &
fi
fi
}
case $1 in
start)
load_luckfoxconfig
;;
*)
exit 1
;;
esac