arc: show status for screeen off

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-07-06 10:52:14 +02:00
parent ea9c7526d2
commit e802789da8
2 changed files with 5 additions and 3 deletions

View File

@ -985,12 +985,12 @@ else
echo "X \"Sata DOM: \Z4${SATADOM}\Zn \" " >>"${TMP_PATH}/menu"
echo "u \"Switch LKM Version: \Z4${LKM}\Zn \" " >>"${TMP_PATH}/menu"
echo "c \"Switch IPv6 Support: \Z4${IPV6}\Zn \" " >>"${TMP_PATH}/menu"
echo "h \"Screen off: \Z4${SCREENOFF}\Zn \" " >>"${TMP_PATH}/menu"
echo "B \"Grep DSM Config from Backup \" " >>"${TMP_PATH}/menu"
echo "L \"Grep Logs from dbgutils \" " >>"${TMP_PATH}/menu"
echo "w \"Reset Loader to Defaults \" " >>"${TMP_PATH}/menu"
echo "C \"Clone Loader to Disk \" " >>"${TMP_PATH}/menu"
echo "F \"\Z1Formate Disks \Zn \" " >>"${TMP_PATH}/menu"
echo "h \"Screen Timeout \" " >>"${TMP_PATH}/menu"
echo "n \"Grub Bootloader Config \" " >>"${TMP_PATH}/menu"
echo "v \"Write Loader Modifications to Disk \" " >>"${TMP_PATH}/menu"
if [ "${OFFLINE}" == "false" ]; then
@ -1178,12 +1178,12 @@ else
C) cloneLoader; NEXT="C" ;;
F) formatDisks; NEXT="F" ;;
G) package; NEXT="G" ;;
h) dialog --backtitle "$(backtitle)" --title "Screen Timeout" \
h) dialog --backtitle "$(backtitle)" --title "Screen off" \
--yesno "Modifying this item requires a reboot, continue?" 0 0
RET=$?
[ ${RET} -ne 0 ] && continue
checkCmdline "arc_cmdline" "nomodeset" && delCmdline "arc_cmdline" "nomodeset" || addCmdline "arc_cmdline" "nomodeset"
dialog --backtitle "$(backtitle)" --title "Screen Timeout" \
dialog --backtitle "$(backtitle)" --title "Screen off" \
--infobox "Reboot to Arc Config Mode" 0 0
rebootTo config
exit 0

View File

@ -620,4 +620,6 @@ function systemCheck () {
else
CPUFREQ="false"
fi
# Screen Timeout
checkCmdline "arc_cmdline" "nomodeset" && SCREENOFF="false" || SCREENOFF="true"
}