summaryrefslogtreecommitdiffstats
path: root/tools/daisy-img-modify.sh
diff options
context:
space:
mode:
authorAlex Yang <yangyang1@zte.com.cn>2017-12-14 15:39:25 +0800
committerAlex Yang <yangyang1@zte.com.cn>2017-12-14 15:39:25 +0800
commitb9ed9708b534dba3ffb16ba9a302c25e89de045b (patch)
tree1cd80ecde91c32761317b12b66591f6b683a54e8 /tools/daisy-img-modify.sh
parent27cb947c971bda2ee6ee39345250580ff75f7d7e (diff)
Use deployserver's timezone in daisy VM
Change-Id: Ie58af69f444924494d1a2949ba894ae55da7efc9 Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
Diffstat (limited to 'tools/daisy-img-modify.sh')
-rwxr-xr-xtools/daisy-img-modify.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/daisy-img-modify.sh b/tools/daisy-img-modify.sh
index aad29949..43fd186b 100755
--- a/tools/daisy-img-modify.sh
+++ b/tools/daisy-img-modify.sh
@@ -186,6 +186,12 @@ setup() {
chroot $mountdir df -h
cp $cmd $mountdir/$(basename $cmd)
+
+ if [ -h /etc/localtime ]; then
+ export localtime_file=$(ls -l /etc/localtime | grep "^l" | awk '{print $11}')
+ elif [ -f /etc/localtime ]; then
+ cp /etc/loccaltime $mountdir/etc/
+ fi
}
# modify image running a script using in a chrooted environment