mirror of
https://github.com/AuxXxilium/arc.git
synced 2024-11-23 23:59:53 +07:00
arc: show status for screeen off
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
ea9c7526d2
commit
e802789da8
@ -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
|
||||
|
@ -620,4 +620,6 @@ function systemCheck () {
|
||||
else
|
||||
CPUFREQ="false"
|
||||
fi
|
||||
# Screen Timeout
|
||||
checkCmdline "arc_cmdline" "nomodeset" && SCREENOFF="false" || SCREENOFF="true"
|
||||
}
|
Loading…
Reference in New Issue
Block a user