30 lines
471 B
Text
30 lines
471 B
Text
|
#!/bin/bash
|
||
|
|
||
|
touch /run/test.pid
|
||
|
cat > /usr/local/etc/screenrc << EOF
|
||
|
screen -t tests stat-netdev
|
||
|
split -v
|
||
|
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 tests <====="
|
||
|
screen -c /usr/local/etc/screenrc
|
||
|
|
||
|
|