mirror of
https://github.com/FunKey-Project/FunKey-OS.git
synced 2026-03-19 02:12:41 +01:00
changed toggle_boot to recovery_mode and normal_mode
Signed-off-by: Michel Stempin <michel.stempin@wanadoo.fr>
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
#!/bin/sh
|
||||
sgdisk -A 1:toggle:2 -A 2:toggle:2 /dev/mmcblk0 >/dev/null 2>&1
|
||||
sgdisk -A 1:set:2 -A 2:clear:2 /dev/mmcblk0 >/dev/null 2>&1
|
||||
recovery=$(sgdisk -A 1:get:2 /dev/mmcblk0 | cut -d : -f3)
|
||||
if [ ${recovery} -eq 1 ]; then
|
||||
echo "Next boot will be in recovery mode"
|
||||
else
|
||||
echo "Next boot will be in normal mode"
|
||||
fi
|
||||
reboot
|
||||
Reference in New Issue
Block a user