mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-02 10:23:51 +00:00
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
12 lines
557 B
Bash
Executable File
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
|