mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
change titles
This commit is contained in:
parent
380d13c25a
commit
7bfe566522
2 changed files with 6 additions and 6 deletions
|
@ -40,7 +40,7 @@ _timezone () {
|
||||||
while [[ -z "${_CONTINUE}" ]]; do
|
while [[ -z "${_CONTINUE}" ]]; do
|
||||||
_REGIONS="America - Europe - Africa - Asia - Australia -"
|
_REGIONS="America - Europe - Africa - Asia - Australia -"
|
||||||
#shellcheck disable=SC2086
|
#shellcheck disable=SC2086
|
||||||
if _dialog --title " Region Menu " --menu "" 11 30 6 ${_REGIONS} 2>${_ANSWER}; then
|
if _dialog --title " Timezone Region " --menu "" 11 30 6 ${_REGIONS} 2>${_ANSWER}; then
|
||||||
_REGION=$(cat ${_ANSWER})
|
_REGION=$(cat ${_ANSWER})
|
||||||
_ZONES=""
|
_ZONES=""
|
||||||
_CONTINUE=1
|
_CONTINUE=1
|
||||||
|
@ -53,7 +53,7 @@ _timezone () {
|
||||||
_ZONES="${_ZONES} ${i} -"
|
_ZONES="${_ZONES} ${i} -"
|
||||||
done
|
done
|
||||||
#shellcheck disable=SC2086
|
#shellcheck disable=SC2086
|
||||||
if _dialog --title " Timezone Menu " --menu "" 21 30 16 ${_ZONES} 2>${_ANSWER}; then
|
if _dialog --title " Timezone " --menu "" 21 30 16 ${_ZONES} 2>${_ANSWER}; then
|
||||||
_SET_ZONE="1"
|
_SET_ZONE="1"
|
||||||
_ZONE=$(cat ${_ANSWER})
|
_ZONE=$(cat ${_ANSWER})
|
||||||
[[ "${_ZONE}" == "${_REGION}" ]] || _ZONE="${_REGION}/${_ZONE}"
|
[[ "${_ZONE}" == "${_REGION}" ]] || _ZONE="${_REGION}/${_ZONE}"
|
||||||
|
@ -87,16 +87,16 @@ _timeset() {
|
||||||
if [[ -z "${_SET_TIME}" ]]; then
|
if [[ -z "${_SET_TIME}" ]]; then
|
||||||
timedatectl set-ntp 0
|
timedatectl set-ntp 0
|
||||||
# display and ask to set date/time
|
# display and ask to set date/time
|
||||||
_dialog --title ' Date Setting' --no-cancel --calendar "Use <TAB> to navigate and arrow keys to change values." 0 0 0 0 0 2> ${_ANSWER}
|
_dialog --title " Date " --no-cancel --calendar "Use <TAB> to navigate and arrow keys to change values." 0 0 0 0 0 2> ${_ANSWER}
|
||||||
_DATE="$(cat ${_ANSWER})"
|
_DATE="$(cat ${_ANSWER})"
|
||||||
_dialog --title ' Time Setting ' --no-cancel --timebox "Use <TAB> to navigate and up/down to change values." 0 0 2> ${_ANSWER}
|
_dialog --title " Time " --no-cancel --timebox "Use <TAB> to navigate and up/down to change values." 0 0 2> ${_ANSWER}
|
||||||
_TIME="$(cat ${_ANSWER})"
|
_TIME="$(cat ${_ANSWER})"
|
||||||
# save the time
|
# save the time
|
||||||
# DD/MM/YYYY hh:mm:ss -> YYYY-MM-DD hh:mm:ss
|
# DD/MM/YYYY hh:mm:ss -> YYYY-MM-DD hh:mm:ss
|
||||||
_DATETIME="$(echo "${_DATE}" "${_TIME}" | sed 's#\(..\)/\(..\)/\(....\) \(..\):\(..\):\(..\)#\3-\2-\1 \4:\5:\6#g')"
|
_DATETIME="$(echo "${_DATE}" "${_TIME}" | sed 's#\(..\)/\(..\)/\(....\) \(..\):\(..\):\(..\)#\3-\2-\1 \4:\5:\6#g')"
|
||||||
timedatectl set-time "${_DATETIME}"
|
timedatectl set-time "${_DATETIME}"
|
||||||
fi
|
fi
|
||||||
if _dialog --cr-wrap --title " Confirmation Dialog " --yesno "$(${_DATE_PROGRAM})" 0 0; then
|
if _dialog --cr-wrap --title " Summary " --yesno "$(${_DATE_PROGRAM})" 0 0; then
|
||||||
_dialog --infobox "Clock configuration completed successfully." 3 50
|
_dialog --infobox "Clock configuration completed successfully." 3 50
|
||||||
_SET_TIME="1"
|
_SET_TIME="1"
|
||||||
sleep 3
|
sleep 3
|
||||||
|
|
|
@ -169,7 +169,7 @@ _network() {
|
||||||
_dialog --no-cancel --title " Proxy Server " --inputbox "\nhttp://name:port\nhttp://ip:port\nhttp://username:password@ip:port\n\n Leave the field empty if no proxy is needed to install." 12 65 "" 2>"${_ANSWER}"
|
_dialog --no-cancel --title " Proxy Server " --inputbox "\nhttp://name:port\nhttp://ip:port\nhttp://username:password@ip:port\n\n Leave the field empty if no proxy is needed to install." 12 65 "" 2>"${_ANSWER}"
|
||||||
_PROXY=$(cat "${_ANSWER}")
|
_PROXY=$(cat "${_ANSWER}")
|
||||||
_PROXIES="http_proxy https_proxy ftp_proxy rsync_proxy HTTP_PROXY HTTPS_PROXY FTP_PROXY RSYNC_PROXY"
|
_PROXIES="http_proxy https_proxy ftp_proxy rsync_proxy HTTP_PROXY HTTPS_PROXY FTP_PROXY RSYNC_PROXY"
|
||||||
_dialog --title " Confirmation Dialog " --yesno "Interface: ${_INTERFACE}\nConnection: ${_CONNECTION}\nNetwork profile: ${_NETWORK_PROFILE}\nSSID: ${_WLAN_SSID}\nHidden: ${_WLAN_HIDDEN}\nKey: ${_WLAN_KEY}\ndhcp or static: ${_IP}\nIP address: ${_IPADDR}\nGateway: ${_GW}\nDNS server: ${_DNS}\nProxy setting: ${_PROXY}" 0 0 && _NETPARAMETERS=1
|
_dialog --title " Summary " --yesno "Interface: ${_INTERFACE}\nConnection: ${_CONNECTION}\nNetwork profile: ${_NETWORK_PROFILE}\nSSID: ${_WLAN_SSID}\nHidden: ${_WLAN_HIDDEN}\nKey: ${_WLAN_KEY}\ndhcp or static: ${_IP}\nIP address: ${_IPADDR}\nGateway: ${_GW}\nDNS server: ${_DNS}\nProxy setting: ${_PROXY}" 0 0 && _NETPARAMETERS=1
|
||||||
done
|
done
|
||||||
# write systemd-networkd profile
|
# write systemd-networkd profile
|
||||||
echo "#$_NETWORK_PROFILE generated by archboot setup" > "${_NETWORK_PROFILE}"
|
echo "#$_NETWORK_PROFILE generated by archboot setup" > "${_NETWORK_PROFILE}"
|
||||||
|
|
Loading…
Reference in a new issue