From 97d44529104fabf1dacf60ce4cc01d7d1cfb007f Mon Sep 17 00:00:00 2001 From: Links Date: Mon, 18 Apr 2022 12:57:56 +0200 Subject: [PATCH] fix Timezone for APP --- userpatches/overlay/root/chroot_onboard.sh | 2 ++ userpatches/overlay/root/run_x6100_app.sh | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/userpatches/overlay/root/chroot_onboard.sh b/userpatches/overlay/root/chroot_onboard.sh index cb3e45d..39ccff9 100755 --- a/userpatches/overlay/root/chroot_onboard.sh +++ b/userpatches/overlay/root/chroot_onboard.sh @@ -27,6 +27,8 @@ if [ "$1" == "start" ] ; then touch /root/qtkmsconfig.json mount -o bind,ro /root/qtkmsconfig.json /mnt/x6100/etc/qtkmsconfig.json + mount -o bind,ro /etc/timezone /mnt/x6100/etc/timezone + #mount -o bind,ro /usr/lib/arm-linux-gnueabihf/alsa-lib/libasound_module_pcm_pulse.so /mnt/x6100/usr/lib/alsa-lib/libasound_module_pcm_pulse.so #mount -o bind,ro /root/asound_x6100_app.conf /mnt/x6100/etc/asound.conf diff --git a/userpatches/overlay/root/run_x6100_app.sh b/userpatches/overlay/root/run_x6100_app.sh index 32f5ebe..7a4845d 100755 --- a/userpatches/overlay/root/run_x6100_app.sh +++ b/userpatches/overlay/root/run_x6100_app.sh @@ -56,4 +56,6 @@ mount -o bind ${CAT_DEV_NEW} /mnt/x6100${CAT_DEV} echo 1 > /sys/class/gpio/gpio138/value -chroot /mnt/x6100 /bin/bash -c 'source /etc/profile && nice --5 /usr/app_qt/x6100_ui_v100' +TZ=$(cat /etc/timezone) + +chroot /mnt/x6100 /bin/bash -c "source /etc/profile && export TZ=${TZ} && nice --5 /usr/app_qt/x6100_ui_v100"