summaryrefslogtreecommitdiffstats
path: root/live/config/chroot_local-includes/lib
diff options
context:
space:
mode:
authorTails developers <amnesia@boum.org>2015-01-08 18:04:04 +0100
committerHolger Levsen <holger@layer-acht.org>2015-01-08 18:04:40 +0100
commitb65883d343910a81a96707ff4e32f333410ca0f9 (patch)
treebbbe27cd44cd565aab3674102fded7fb91378b22 /live/config/chroot_local-includes/lib
parenta5a75b59283f2c2fa574d3f868e9791ce7323f58 (diff)
downloadjenkins.debian.net-b65883d343910a81a96707ff4e32f333410ca0f9.tar.xz
files copied from https://git-tails.immerda.ch/tails/config - many thanks to the tails developers for their nice work and documentation of it
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