Are you tired of waiting for 30 seconds add just to connect to Wi-Fi on a train of České dráhy?
Fortunately, there is a simple solution to this problem.
Simply open this website in your web browser to access the Wi-Fi:
Don't forget to save it to your web browser's bookmarks 🙂
Opening this page tells the CDWifi server, which manages device access, that your device has completed the terms agreement challenge and is ready to use the internet.
The same request runs in the background when you click or tap Continue on the standard terms agreement website.
This script runs when you connect to any network. If the connected network's SSID is CDWiFi, it will run an HTTP
request.
- NetworkManager
- wget
- root privilege to create and edit files in
/etc/NetworkManager/dispatcher.d/
- Download the cdwifi-autoconnect-setup.sh script.
wget https://raw.githubusercontent.com/ingui-n/cdwifi-autoconnect/refs/heads/master/cdwifi-autoconnect-setup.sh- Add execute permission to the script.
chmod +x cdwifi-autoconnect-setup.sh- Run the script with root privileges. If your system don't have sudo, you need to remove them from cdwifi-autoconnect-setup.sh file.
sudo ./cdwifi-autoconnect-setup.sh