mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-28 14:57:12 +00:00
Merge branch 'master' into dev
This commit is contained in:
commit
bec983de14
1 file changed
+11
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/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
|
||||
Reference in new issue
Block a user