Skip to content

AutoInfrastructure/EE_WiFi-BT_WiFi-Autologin-OpenWRT

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This Is Part Of The EE WiFi (BT Wi-Fi) Autologin Services & Is Also For

  • Windows
  • Linux
  • Android (& Chromebook)

More information available here:

https://github.com/aidanmacgregor/BTWi-Fi_Autologin_-_OpenWrt_Linux_ChromeOS_Android_Macrodroid_Windows.EXE

2528830 OpenWrt Autologin Service, LED & Theme

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.

Features:

  • 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

My Network Topology :

My Network NEW 2

Install The tar.gz Files Using LUCI (System > Backup / Flash Firmware)

Click to expand!

Install


Autologin Service (System > Startup)

Click to expand!

Startup (3)


Add Your Account (System > Startup > Local Startup)

Click to expand!

Local Startup (3)


48 Yellow Info Remove Forced Safesearch & Content Filtering (DNS)

Click to expand!

Interface > br-lan (Edit) > DHCP Server > Advanced Settings

  • Change The Setting "DHCP-Options" to
6,8.8.8.8,8.8.4.4

LAN DHCP OPTIONS

Interface > wwan (Edit) > Advanced Settings

  • Use DNS servers advertised by peer
(uncheck)
  • Use custom DNS servers
8.8.8.8
8.8.4.4

WWAN DNS SETTINGS


OpenWrt Downloads

Login Service

LED Service

Themes

About

Automatically Login To The BT Wi-Fi (UK) Network (And Stay Online)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%