# set the timezone variable in the kernel
case $# in
1)	;;
2)	FILE=$2;;
*)	echo "usage: $0 timezone [file]" 2>&1; exit 2;;
esac
case $1 in
ast)	a=4;;
adt)	a=4;;
est)	a=5;;
edt)	a=5;;
cst)	a=6;;
cdt)	a=6;;
mst)	a=7;;
mdt)	a=7;;
pst)	a=8;;
pdt)	a=8;;
AST)	a=4;;
ADT)	a=4;;
EST)	a=5;;
EDT)	a=5;;
CST)	a=6;;
CDT)	a=6;;
MST)	a=7;;
MDT)	a=7;;
PST)	a=8;;
PDT)	a=8;;
*)	echo "Do not understand $1" 2>&1; exit 2;;
esac
case "$FILE" in
"")	
	adb -w /unix /dev/kmem <<!
	/m 80000000 0ffffffff
	timezone/W $a*0t60
	timezone?W $a*0t60
!
	;;
*)	adb -w $FILE - <<!
	timezone?W $a*0t60
!
	;;
esac
date
