summaryrefslogtreecommitdiffstats
path: root/live/config/chroot_local-includes/lib/live/config/9999-autotest
blob: 508c8ce8146b8a0ac0cf9841e48de833c2b8ee56 (plain)
1
2
3
4
5
6
7
8
9
10
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