blob: e5f484d3bb85f19b8f6bb4efe56029e3bdf57110 (
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
# a more beautiful solution is desirable
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
|