hw-test/scripts/screen-netdev

33 lines
538 B
Bash
Executable file

#!/bin/bash
touch /run/test.pid
cat > /usr/local/etc/screenrc << EOF
screen -t tests stat-bonding
split
focus bottom
screen -t status journalctl -f
EOF
WAIT=25
echo -n "Waiting $WAIT seconds for tests to start"
while [[ $WAIT -gt 0 ]] ; do
sleep 1
WAIT=$(( WAIT -1 ))
if [[ $(( WAIT % 5 )) == 0 ]] ; then
echo -n $WAIT
else
echo -n '.'
fi
done
echo
#exec < /dev/tty3 > /dev/tty3
#chvt 3
echo "=====> Begin setup <====="
setup-netdev
scan-hdd
scan-bonding
echo "=====> Begin tests <====="
screen -c /usr/local/etc/screenrc