mirror of
https://github.com/RROrg/rr.git
synced 2025-06-21 05:51:05 +08:00
Added missing arpl-reboot
This commit is contained in:
parent
e3594d5bdc
commit
609389ef71
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
|
Loading…
x
Reference in New Issue
Block a user