diff options
author | khilman <khilman@users.noreply.github.com> | 2018-07-16 09:19:33 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-16 09:19:33 -0500 |
commit | ed83f7aa1af39e75c10d5e8c4f1385c302beec12 (patch) | |
tree | 62f7a84132c06b1c0f121c25908387854aae820b /lava-slave/scripts/start.sh | |
parent | c0ef82c6a0673990f2dfaa0bcf47287a5513eb27 (diff) | |
parent | 32221a4e8fe36fd5c3c972039932cb53a25b1d5c (diff) |
Merge pull request #30 from montjoie/fix072018
Fix072018
Diffstat (limited to 'lava-slave/scripts/start.sh')
-rwxr-xr-x | lava-slave/scripts/start.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lava-slave/scripts/start.sh b/lava-slave/scripts/start.sh index 35e58a4..21b6903 100755 --- a/lava-slave/scripts/start.sh +++ b/lava-slave/scripts/start.sh @@ -8,6 +8,9 @@ if [[ -n "$LAVA_MASTER" ]]; then fi service tftpd-hpa start || exit 4 +if [ -s /etc/ser2net.conf ];then + service ser2net start || exit 7 +fi touch /var/run/conmux-registry /usr/sbin/conmux-registry 63000 /var/run/conmux-registry& @@ -20,6 +23,19 @@ do /usr/sbin/conmux $item & done +HAVE_SCREEN=0 +while read screenboard +do + echo "Start screen for $screenboard" + TERM=xterm screen -d -m -S $screenboard /dev/$screenboard 115200 -ixoff -ixon || exit 9 + HAVE_SCREEN=1 +done < /root/lava-screen.conf +if [ $HAVE_SCREEN -eq 1 ];then + sed -i 's,UsePAM.*yes,UsePAM no,' /etc/ssh/sshd_config || exit 10 + service ssh start || exit 11 +fi + + # start an http file server for boot/transfer_overlay support (cd /var/lib/lava/dispatcher; python -m SimpleHTTPServer 80) & |