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"