linuxOS_D21X/package/third-party/skeleton-init-sysv/skeleton/usr/bin/aicupg

15 lines
235 B
Plaintext
Raw Normal View History

2024-11-29 08:13:19 +00:00
#!/bin/sh
2024-11-29 08:33:21 +00:00
# Default goto BROM upgmode
UPGVAL=1
if [ "$1" == "gotobl" ]; then
# Goto U-Boot upgmode
UPGVAL=2
fi
2025-06-05 06:33:02 +00:00
cd /sys/devices/platform/soc/*.wri || exit
2024-11-29 08:33:21 +00:00
echo "$UPGVAL" > aicupg
2024-11-29 08:13:19 +00:00
echo Will reboot after 3 seconds ...
sleep 3
reboot