diff options
author | MatMoul <matmoul@gmail.com> | 2020-04-03 22:46:56 +0200 |
---|---|---|
committer | MatMoul <matmoul@gmail.com> | 2020-04-03 22:46:56 +0200 |
commit | cc281cf08ff8ebf73ad07890101f8f06848dcf1f (patch) | |
tree | 02b8da48f7ed0bebda146a25275ea6267e417dc8 | |
parent | 946812b3f8abbde6d756a493c063fb29a2f0e755 (diff) | |
download | hyperfi-cc281cf08ff8ebf73ad07890101f8f06848dcf1f.tar.lz hyperfi-cc281cf08ff8ebf73ad07890101f8f06848dcf1f.tar.xz hyperfi-cc281cf08ff8ebf73ad07890101f8f06848dcf1f.zip |
Update Visual Set Time
-rw-r--r-- | archfi | 36 |
1 files changed, 29 insertions, 7 deletions
@@ -1136,13 +1136,33 @@ archsettime(){ ln -sf /usr/share/zoneinfo/${timezone} /mnt/etc/localtime pressanykey - if (whiptail --backtitle "${apptitle}" --title "${txtsettime}" --yesno "${txtuseutcclock}" 0 0) then - clear - archchroot settimeutc - else - clear - archchroot settimelocal + options=() + options+=("UTC" "") + options+=("Local" "") + sel=$(whiptail --backtitle "${apptitle}" --title "${txtsettime}" --menu "${txthwclock}" 0 0 0 \ + "${options[@]}" \ + 3>&1 1>&2 2>&3) + if [ ! "$?" = "0" ]; then + return 1 fi + + clear + case ${sel} in + "${txthwclockutc}") + archchroot settimeutc + ;; + "${txthwclocklocal}") + archchroot settimelocal + ;; + esac + +# if (whiptail --backtitle "${apptitle}" --title "${txtsettime}" --yesno "${txtuseutcclock}" 0 0) then +# clear +# archchroot settimeutc +# else +# clear +# archchroot settimelocal +# fi pressanykey @@ -1853,7 +1873,9 @@ loadstrings(){ txtsettime="Set Time" txtsetrootpassword="Set root password" - txtuseutcclock="Use UTC hardware clock ?" + txthwclock="Hardware clock :" + txthwclockutc="UTC" + txthwclocklocal="Local" txtbootloader="Bootloader" txtbootloadermenu="Choose your bootloader" |