1#!/bin/sh
2
3. scripts/functions
4
5URL=http://$WIN32_ADDR:8091
6wget -qO $tmp/start.log "$URL/reboot"
7
8# we need a way to start the regress-win32.pl at the start
9while ! ping -c 1 $WIN32_ADDR > /dev/null; do
10    sleep 5
11done
12echo "Machine $URL supposedly rebooted"
13
14echo "If the autologon doesn't work, you can double click on c:\\autologon.reg"
15i=0
16while ! 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
23done
24