]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/reboot_win32
baculum: Tweak trim whitespaces from joblog
[bacula/bacula] / regress / scripts / reboot_win32
1 #!/bin/sh
2
3 . scripts/functions
4
5 URL=http://$WIN32_ADDR:8091
6 wget -qO $tmp/start.log "$URL/reboot"
7
8 # we need a way to start the regress-win32.pl at the start
9 while ! ping -c 1 $WIN32_ADDR > /dev/null; do
10     sleep 5
11 done
12 echo "Machine $URL supposedly rebooted"
13
14 echo "If the autologon doesn't work, you can double click on c:\\autologon.reg"
15 i=0
16 while ! wget -qO /dev/null $URL/nop; do
17     sleep 5
18     i=`expr $i + 1`
19     if [ $i -ge 12 ]; then  # print message every minute
20        i=0
21        echo "== `date +%T` Waiting for reboot and autologin to $URL, you can also login and start regress-win32.pl by hand"
22     fi
23 done