mirror of
https://github.com/FunKey-Project/FunKey-OS.git
synced 2025-12-28 07:28:51 +01:00
add powerdown in Recovery menu
Signed-off-by: Michel-FK <michel.stempin@funkey-project.com>
This commit is contained in:
parent
3b9d7caf05
commit
440ba2c393
@ -73,6 +73,12 @@ menu_display () {
|
|||||||
# Exit Recovery
|
# Exit Recovery
|
||||||
message=" EXIT RECOVERY"
|
message=" EXIT RECOVERY"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
8)
|
||||||
|
|
||||||
|
# Shutdown
|
||||||
|
message=" SHUTDOWN"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
notif "${message}"
|
notif "${message}"
|
||||||
}
|
}
|
||||||
@ -236,6 +242,11 @@ menu_run () {
|
|||||||
notif "^^^^^^^^ RESTARTING...^^^^^^^^"
|
notif "^^^^^^^^ RESTARTING...^^^^^^^^"
|
||||||
normal_mode
|
normal_mode
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
8)
|
||||||
|
notif "^^^^^^^^ SHUTDOWN...^^^^^^^^"
|
||||||
|
poweroff
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -252,9 +263,9 @@ while true; do
|
|||||||
|
|
||||||
# Key UP pressed or repeat
|
# Key UP pressed or repeat
|
||||||
let entry=${entry}-1
|
let entry=${entry}-1
|
||||||
let entry=${entry}%8
|
let entry=${entry}%9
|
||||||
if [ ${entry} -eq -1 ]; then
|
if [ ${entry} -eq -1 ]; then
|
||||||
entry=7
|
entry=8
|
||||||
fi
|
fi
|
||||||
menu_display ${entry}
|
menu_display ${entry}
|
||||||
;;
|
;;
|
||||||
@ -263,7 +274,7 @@ while true; do
|
|||||||
|
|
||||||
# Key DOWN pressed or repeat
|
# Key DOWN pressed or repeat
|
||||||
let entry=${entry}+1
|
let entry=${entry}+1
|
||||||
let entry=${entry}%8
|
let entry=${entry}%9
|
||||||
menu_display ${entry}
|
menu_display ${entry}
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user