2016-12-23 03:47:40 -06:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
touch /run/test.pid
|
|
|
|
cat > /usr/local/etc/screenrc << EOF
|
2017-01-25 22:30:16 -06:00
|
|
|
screen -t tests stat-bonding
|
2021-09-07 05:24:08 -05:00
|
|
|
split
|
2016-12-23 03:47:40 -06:00
|
|
|
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
|
|
|
|
|
2017-01-25 22:30:16 -06:00
|
|
|
echo "=====> Begin setup <====="
|
|
|
|
setup-netdev
|
2017-02-23 14:04:57 -06:00
|
|
|
scan-hdd
|
|
|
|
scan-bonding
|
2016-12-23 03:47:40 -06:00
|
|
|
echo "=====> Begin tests <====="
|
|
|
|
screen -c /usr/local/etc/screenrc
|
|
|
|
|
|
|
|
|