summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/live-installer/install_proxy.sh
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2008-11-07 04:19:29 (GMT)
committerJames Meyer <james.meyer@operamail.com>2008-11-07 04:19:29 (GMT)
commit96544bc44e472422bdc878e6d943391155bbbc35 (patch)
treed4d2f5e3db547adf0a6eac5ecf083715f14bb3e8 /abs/core-testing/live-installer/install_proxy.sh
parent1b44c636c6e5e251c263d5ccac938b378e17d3a4 (diff)
downloadlinhes_pkgbuild-96544bc44e472422bdc878e6d943391155bbbc35.zip
linhes_pkgbuild-96544bc44e472422bdc878e6d943391155bbbc35.tar.gz
linhes_pkgbuild-96544bc44e472422bdc878e6d943391155bbbc35.tar.bz2
km->linhes upgrade now supporting timezone.
Diffstat (limited to 'abs/core-testing/live-installer/install_proxy.sh')
-rwxr-xr-xabs/core-testing/live-installer/install_proxy.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/abs/core-testing/live-installer/install_proxy.sh b/abs/core-testing/live-installer/install_proxy.sh
index ae31d5b..bc89a1d 100755
--- a/abs/core-testing/live-installer/install_proxy.sh
+++ b/abs/core-testing/live-installer/install_proxy.sh
@@ -358,8 +358,25 @@ echo "-----------------------------------------------------------------------3--
$MV_ROOT/bin/restore_default_settings.sh -c restore -t syssettings -h $MVHOSTNAME -d 127.0.0.1
else
cp -rf /new_boot/etc /tmp/etc
+ #now we search for the timezone and try to update
+ TZREGION=`cat /tmp/etc/timezone | cut -d"/" -f1`
+ TZSUB=`cat /tmp/etc/timezone | cut -d"/" -f2 -`
+
+
+ if [ $TZREGION = $TZSUB ]
+ then
+ $run update_db_it HostTimeZoneRegion "$TZREGION"
+ else
+ $run update_db_it HostTimeZoneRegion "$TZREGION"
+ $run update_db_it HostTimeZoneRegion_$TZREGION "$TZSUB"
+ fi
+
+
+
fi
+
+
$run umount_it $disk
;;