3 CLOCK=/etc/sysconfig/clock
5 if [ ! -e $CLOCK ]; then
9 # Read existing zone name from config
10 # Cut 'Asia/Seoul' from line 'ZONE="Asia/Seoul" UTC=True'
13 if [ ! -z "${line##*ZONE*}" ]; then
16 zonename=$(echo $line | sed -e 's#^[[:space:]]*ZONE[[:space:]]*=[[:space:]]*"\?\([^[:space:]\n"]*\).*#\1#')
17 zonefile="/usr/share/zoneinfo/${zonename}"
21 if [ -e /etc/localtime ]; then
22 cp ${zonefile} /etc/localtime