install: add tzsetup
This commit is contained in:
parent
df6360169f
commit
d711e87eb8
2 changed files with 28 additions and 0 deletions
|
@ -22,6 +22,7 @@ tasks=(\
|
||||||
download\
|
download\
|
||||||
copydist\
|
copydist\
|
||||||
ndbsetup nvramsetup\
|
ndbsetup nvramsetup\
|
||||||
|
tzsetup\
|
||||||
bootsetup finish stop\
|
bootsetup finish stop\
|
||||||
stopether stopppp\
|
stopether stopppp\
|
||||||
)
|
)
|
||||||
|
|
27
rc/bin/inst/tzsetup
Executable file
27
rc/bin/inst/tzsetup
Executable file
|
@ -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
|
||||||
|
}
|
Loading…
Reference in a new issue