first step in making the timezone select with dialog, still commented out as it still needs fixing

pull/3/head
Amy 3 years ago
parent 262f6d9d49
commit 02f1f4fb16
No known key found for this signature in database
GPG Key ID: 6672E6DD65BEA50B

@ -253,6 +253,17 @@ while [[ ! -f $TZ ]]; do
TZ="/usr/share/zoneinfo/${PT}"
done
#var=$(ls /usr/share/zoneinfo/ | sed 's/ /" "" "/g')
#var=$(echo $var | sed 's/ /" "" "/g')
#var=$(echo \"$var\")
#loc1=$(dialog --title "Citrine" --menu "Please pick a time zone" 20 100 43 $var "" --stdout)
#var1=$(ls /usr/share/zoneinfo/$loc1 | sed 's/ /" "" "/g')
#var1=$(echo $var1 | sed 's/ /" "" "/g')
#var1=$(echo \"$var1\")
#loc2=$(dialog --title "Citrine" --menu "Please pick a time zone" 20 100 43 $var1 "" --stdout)
#TZ="/usr/share/zoneinfo/$loc1/$loc2"
arch-chroot /mnt ln-sf $TZ /etc/localtime
inf "Set TZ to ${TZ}"
inf "Syncing hardware offset"

@ -0,0 +1,12 @@
var=$(ls /usr/share/zoneinfo/ | sed 's/ /" "" "/g')
var=$(echo $var | sed 's/ /" "" "/g')
var=$(echo \"$var\")
loc1=$(dialog --title "Citrine" --menu "Please pick a time zone" 20 100 43 $var "" --stdout)
loc1=$(echo $loc1 | sed 's/"//g')
var1=$(ls /usr/share/zoneinfo/$loc1 | sed 's/ /" "" "/g')
var1=$(echo $var1 | sed 's/ /" "" "/g')
var1=$(echo \"$var1\")
loc2=$(dialog --title "Citrine" --menu "Please pick a time zone" 20 100 43 $var1 "" --stdout)
loc2=$(echo $loc2 | sed 's/"//g')
TZ="/usr/share/zoneinfo/$loc1/$loc2"
echo $TZ
Loading…
Cancel
Save