Update wifi-sncf-tgv.sh
This commit is contained in:
parent
402671e69a
commit
e9452b5695
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
### Wifi @ SNCF TGV INOUI
|
||||
### Sacha 20240401
|
||||
### Sacha 20240401
|
||||
### Validate captive portal access
|
||||
|
||||
wifiinterface="wlp170s0"
|
||||
|
@ -11,7 +11,7 @@ tmpfile=/tmp/wifi-tgv.tmp
|
|||
nmap --script broadcast-dhcp-discover -e $wifiinterface > $tmpfile
|
||||
DNS=$(grep "Domain Name Server" $tmpfile | awk -F: '{gsub (" ", "", $0); print $2}')
|
||||
|
||||
# Enabling the wifi
|
||||
# Enabling the wifi
|
||||
echo "Enabling SNCF's Wifi"
|
||||
curl --silent --output /dev/null -X POST 'https://wifi.sncf/router/api/connection/activate/auto' --resolve wifi.sncf:443:$DNS
|
||||
|
||||
|
|
Loading…
Reference in a new issue