Merge pull request #187 from fbelavenuto/arpl-reboot

Added missing arpl-reboot
This commit is contained in:
Fabio Belavenuto 2022-09-22 11:39:32 -03:00 committed by GitHub
commit ebf1bf2e24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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