From 833f0ee9a38590ba94ebddc9f73a79592ae05400 Mon Sep 17 00:00:00 2001 From: Links Date: Thu, 14 Apr 2022 12:28:08 +0200 Subject: [PATCH] x6100 APP stop RF on service stop --- userpatches/overlay/root/run_x6100_app.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/userpatches/overlay/root/run_x6100_app.sh b/userpatches/overlay/root/run_x6100_app.sh index 9445d0d..46b471b 100755 --- a/userpatches/overlay/root/run_x6100_app.sh +++ b/userpatches/overlay/root/run_x6100_app.sh @@ -1,3 +1,11 @@ #!/bin/bash +function cleanup() +{ + echo 0 > /sys/class/gpio/gpio138/value +} + +trap cleanup EXIT +trap cleanup SIGINT + echo 1 > /sys/class/gpio/gpio138/value -chroot /mnt/x6100 /bin/bash -c 'source /etc/profile && /usr/app_qt/x6100_ui_v100' \ No newline at end of file +chroot /mnt/x6100 /bin/bash -c 'source /etc/profile && nice --5 /usr/app_qt/x6100_ui_v100'