mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +00:00
961c1a655a
While there, clean things up a bit and really do staging. PR: 211260 [1] Submitted by: devel stasyan com MFH: 2016Q3 With hat: portmgr Sponsored by: Absolight
15 lines
337 B
Bash
15 lines
337 B
Bash
#!/bin/sh
|
|
|
|
if [ "$2" != "PRE-INSTALL" ]; then
|
|
exit 0
|
|
fi
|
|
|
|
if [ -f /var/db/zoneinfo -a -O /var/db/zoneinfo -a -G /var/db/zoneinfo ]; then
|
|
if [ -f /usr/share/zoneinfo/$(cat /var/db/zoneinfo) ]; then
|
|
tzsetup -r
|
|
echo "/etc/localtime is updated."
|
|
fi
|
|
else
|
|
echo "Now run tzsetup(8) again to install the right file to /etc/localtime."
|
|
fi
|