From 495dd804761bcd9578e648c56eefae2f2f9fe625 Mon Sep 17 00:00:00 2001 From: jim-p Date: Wed, 28 Aug 2013 10:48:17 -0400 Subject: If upgrading NanoBSD, try to grab the previous timezone file so the zone is preserved on the next boot. --- tmp/post_upgrade_command | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tmp') diff --git a/tmp/post_upgrade_command b/tmp/post_upgrade_command index 672c7f6..4e07a71 100755 --- a/tmp/post_upgrade_command +++ b/tmp/post_upgrade_command @@ -123,3 +123,8 @@ fi if [ -f ${MTREECHKDIR}etc/pfSense.mtree ]; then /usr/sbin/mtree -U -e -q -f ${MTREECHKDIR}etc/pfSense.mtree -p ${MTREECHKDIR} > /conf/mtree.log; fi; + +# Make sure to preserve existing time zone +if [ "${PFSENSETYPE}" = "nanobsd" ] && [ -f /etc/localtime ]; then + /bin/cp -p /etc/localtime /tmp/${1}/etc/localtime 2>/dev/null +fi -- cgit v1.1