mirror of
https://github.com/LuckfoxTECH/luckfox-pico.git
synced 2026-01-18 03:28:19 +01:00
23 lines
406 B
Bash
Executable File
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
|