- Windows
- Linux
- Android (& Chromebook)
This is a shell script that is used to automatically log in to a BT Wi-Fi network as a service on an OpenWrt device. The script is designed to start automatically when the device is powered on and run continuously in the background. It includes several functions that are used to start, stop, and manage the service, as well as a loop that checks for internet connectivity and logs in to the BT Wi-Fi network if necessary.
The script defines several variables that are used to configure the behavior of the service, including the ACCOUNTTYPE, USERNAME, and PASSWORD variables, which are used to specify the user's account type and login credentials. These variables are read from the /etc/rc.local file, which is a script that is executed when the device starts up.
The script includes several functions, including the start function, which is used to start the service, and the stop function, which is used to stop the service. The start function starts three loops in the background, including the btwifi_loop, which checks for internet connectivity and logs in to the BT Wi-Fi network if necessary, the cleanlog_loop, which limits the size of the log file, and the tls_loop, which installs the TLS (Transport Layer Security) certificate if it is not already installed on the device. The stop function kills the three loops and removes the PID files that are used to track the processes.
The script also includes several optional variables, such as the LOGSIZE, PING1, PING2, PING3, and LOGPATH variables, which are used to customize the behavior of the service. For example, the LOGSIZE variable is used to specify the maximum size of the log file, and the PING1, PING2, and PING3 variables are used to specify the websites to ping to check for internet connectivity.
- No Treminal Commands (GUI Based)
- Automatically Detect internet & OpenWRT Version to install libustream-mbedtls if needed
- Logging
- Log Size Limt
- Theme & LED Service also availible
- (v5) Fixed bug where TLS loop wouldn't exit if detected sucsesully
- (v5) New openwrt version detection meethod
- (v5) New method to detect if TLS/SSL is installed
- (v5) Check for TLS/SSL before running login attempts
- (v5) Added no check certificate to wget
- (v5) Added check for logfile before trying to truncate
- (v5) Cleaned up spacing in code
- (v6) Change filename to lovercase as per linux standard and remove v5 from filename
- (v6) Reupload as missed tar.gz upload before
- (v6) Include some EE rebranding
Click to expand!
- Change The Setting "DHCP-Options" to
6,8.8.8.8,8.8.4.4
- Use DNS servers advertised by peer
(uncheck)
- Use custom DNS servers
8.8.8.8
8.8.4.4




