mirror of
https://github.com/fbelavenuto/arpl.git
synced 2025-12-24 06:42:06 +08:00
Added missing arpl-reboot
This commit is contained in:
12
files/board/arpl/overlayfs/usr/sbin/arpl-reboot.sh
Executable file
12
files/board/arpl/overlayfs/usr/sbin/arpl-reboot.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env ash
|
||||
|
||||
function use() {
|
||||
echo "Use: ${0} junior|config"
|
||||
exit 1
|
||||
}
|
||||
|
||||
[ -z "${1}" ] && use
|
||||
[ "${1}" != "junior" -a "${1}" != "config" ] && use
|
||||
echo "Rebooting to ${1} mode"
|
||||
grub-editenv /mnt/p1/grub/grubenv set next_entry="${1}"
|
||||
reboot
|
||||
Reference in New Issue
Block a user