From fd43faac167283d0fc267467263f25b3f63e60a8 Mon Sep 17 00:00:00 2001 From: Joren Van Onder Date: Wed, 13 Apr 2016 14:26:13 +0200 Subject: [PATCH] [IMP] point_of_sale: redirect POSBox image init script output to file Useful when updates to the initialization scripts don't go as planned. This leaves something to inspect. The initialization script already automatically stops (because of 'set -o errexit') but it was a bit tricky to actually see what went wrong because scrollback in QEMU isn't great. --- .../tools/posbox/overwrite_before_init/etc/rc.local | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/point_of_sale/tools/posbox/overwrite_before_init/etc/rc.local b/addons/point_of_sale/tools/posbox/overwrite_before_init/etc/rc.local index c55290c3978..22b8b8a5c8a 100755 --- a/addons/point_of_sale/tools/posbox/overwrite_before_init/etc/rc.local +++ b/addons/point_of_sale/tools/posbox/overwrite_before_init/etc/rc.local @@ -17,6 +17,6 @@ if [ "$_IP" ]; then printf "My IP address is %s\n" "$_IP" fi -/etc/init_posbox_image.sh +/etc/init_posbox_image.sh 2>&1 | tee /home/pi/init_posbox_image.log exit 0