Files
sailing-analytics/java/target/updateIPToBoat2
T
Armin Zamani b501d1ca6f Merge branch 'racecommittee_integrated' of
ssh://armin@sapsailing.com/home/trac/git into racecommittee_integrated

Conflicts:
	java/com.sap.sailing.domain/src/com/sap/sailing/domain/leaderboard/impl/AbstractSimpleLeaderboardImpl.java
2013-04-11 00:28:12 +02:00

12 lines
557 B
Bash
Executable File

#!/bin/sh
# updates a Windows machine's WiFi IP address to the sapsailing.com apache configuration
# using the updateRedirect CGI-BIN script on the server side
# Note the "grep" for the German output of ipconfig on a German Windows installation...
if [ "$1" = "" ]; then
echo "Usage: updateIPToBoat2 <port>"
else
ip=`ipconfig /all | grep Bevorzugt | grep IPv4 | sed -e 's/^.*: \([^(]*\)(.*$/\1/'`
echo IP address is $ip
wget -O /tmp/updateIPToBoat2.out "http://bugzilla.sapsailing.com/cgi-bin/updateRedirect?name=boat2&ip=$ip&port=$1"
fi