summaryrefslogtreecommitdiffstats
path: root/live/config/chroot_local-includes/lib
diff options
context:
space:
mode:
Diffstat (limited to 'live/config/chroot_local-includes/lib')
-rwxr-xr-xlive/config/chroot_local-includes/lib/live/config/9999-autotest11
1 files changed, 11 insertions, 0 deletions
diff --git a/live/config/chroot_local-includes/lib/live/config/9999-autotest b/live/config/chroot_local-includes/lib/live/config/9999-autotest
new file mode 100755
index 00000000..508c8ce8
--- /dev/null
+++ b/live/config/chroot_local-includes/lib/live/config/9999-autotest
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+SCRIPT=/usr/local/sbin/autotest_remote_shell.py
+
+if grep -qw "autotest_never_use_this_option" /proc/cmdline; then
+ # FIXME: more beautiful solution
+ sed -i 's/^exit.*$//' /etc/rc.local
+ echo "( while true ; do python ${SCRIPT} /dev/ttyS0 ; done ) &" >> \
+ /etc/rc.local
+ echo "exit 0" >> /etc/rc.local
+fi