2 # Copy/update time zone database to the /etc hierarchy
4 cp -Rpf "${packagedir}/${name}"/etc/zoneinfo* etc/
6 # Set default zone info file, default points to 'UTC'
8 if test -r etc/zoneinfo/UTC
10 if test -L etc/localtime && test ! -e etc/localtime
12 echo "etc/localtime is a dangling symlink, trying to recreate it" 1>&2
13 ln -sf zoneinfo/UTC etc/localtime
14 elif test ! -e etc/localtime
16 ln -s zoneinfo/UTC etc/localtime
20 if test ! -e etc/localtime
22 echo "Setting default time zone to UTC (etc/localtime -> zoneinfo/UTC) ..."
23 ln -sf zoneinfo/UTC etc/localtime
26 # Re-create symlink for "zoneinfo-posix" directory
28 rm -f etc/zoneinfo-posix
29 cd etc && ln -sf zoneinfo zoneinfo-posix