If upgrading NanoBSD, try to grab the previous timezone file so the zone is preserved on the next boot.

This commit is contained in:
jim-p 2013-08-28 10:48:17 -04:00
parent 636307a5cf
commit a41c031694
1 changed files with 5 additions and 0 deletions

View File

@ -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