diff --git a/once/update.sh b/once/update.sh index 6385e2e..e09572e 100755 --- a/once/update.sh +++ b/once/update.sh @@ -10,6 +10,10 @@ else mkdir -p "$SYSROOT" || exit 2 fi +if [ -f "$SYSROOT/etc/localtime" ]; then + cp -p "$SYSROOT/etc/localtime" "$SYSROOT/etc/localtime.site" +fi + tarballs=$(ls /updates/*.tar.gz 2>/dev/null) if [ "$tarballs" = '/updates/*.tar.gz' ]; then @@ -44,6 +48,10 @@ for tarball in $tarballs; do echo done +if [ -f "$SYSROOT/etc/localtime.site" ]; then + mv "$SYSROOT/etc/localtime.site" "$SYSROOT/etc/localtime" +fi + rm -f /updates/update.pending echo