summaryrefslogtreecommitdiff
path: root/rc/bin/inst
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@centraldogma>2011-08-29 23:54:19 +0200
committercinap_lenrek <cinap_lenrek@centraldogma>2011-08-29 23:54:19 +0200
commitc504f717e22bb72f337484df0fc0d7fe1dac2b8f (patch)
tree6704ca19bc7f3ae9520480027d2f5309ebfefec9 /rc/bin/inst
parentc4db8cecbc33f213fa60fb3912f5346cad049538 (diff)
parentd711e87eb8fcad353914cd7e0d11d29652e76973 (diff)
downloadplan9front-c504f717e22bb72f337484df0fc0d7fe1dac2b8f.tar.xz
merge
Diffstat (limited to 'rc/bin/inst')
-rwxr-xr-xrc/bin/inst/main1
-rw-r--r--rc/bin/inst/tzsetup27
2 files changed, 28 insertions, 0 deletions
diff --git a/rc/bin/inst/main b/rc/bin/inst/main
index 1b9a0960d..de805bac3 100755
--- a/rc/bin/inst/main
+++ b/rc/bin/inst/main
@@ -22,6 +22,7 @@ tasks=(\
download\
copydist\
ndbsetup nvramsetup\
+ tzsetup\
bootsetup finish stop\
stopether stopppp\
)
diff --git a/rc/bin/inst/tzsetup b/rc/bin/inst/tzsetup
new file mode 100644
index 000000000..cad20dd2b
--- /dev/null
+++ b/rc/bin/inst/tzsetup
@@ -0,0 +1,27 @@
+#!/bin/rc
+
+# desc: choose time zone
+
+switch($1){
+case checkdone
+ if(~ $#tzd 1 && ~ $tzd done)
+ tzsetup=done
+ if not
+ tzsetup=ready
+ export tzsetup
+case go
+ echo
+ echo 'Setup Time Zone'
+ echo
+
+ options=`{ls -p /adm/timezone | grep -v -e '(README|local)'}
+ prompt -d US_Eastern 'Time Zone' $options
+
+ if(test -f /adm/timezone/$rd){
+ cp /adm/timezone/$rd /adm/timezone/local >[2]/dev/null
+ tzd=done
+ }
+ if not
+ tzd=failed
+ export tzd
+}