1 # $NetBSD: 15-timezone,v 1.6 2014/11/07 20:51:03 roy Exp $
5 : ${localtime:=/etc/localtime}
9 local zoneinfo_dir= zone_file=
11 [ -z "$new_tzdb_timezone" ] && return 0
25 if [ -z "$zoneinfo_dir" ]; then
26 syslog warning "timezone directory not found"
30 zone_file="$zoneinfo_dir/$new_tzdb_timezone"
31 if [ ! -e "$zone_file" ]; then
32 syslog warning "no timezone definition for $new_tzdb_timezone"
36 if copy_file "$zone_file" "$localtime"; then
37 syslog info "timezone changed to $new_tzdb_timezone"
41 # For ease of use, map DHCP6 names onto our DHCP4 names
43 BOUND6|RENEW6|REBIND6|REBOOT6|INFORM6)
44 new_tzdb_timezone="$new_dhcp6_tzdb_timezone"