Foreword
WHU's (Wuhan University) campus network limits three devices per account, and after 7pm, the speed is capped at 20Mbps.
If your dorm has a network port that works, and you connect an OpenWRT router, you can easily double your network experience. It not only allows you to share the cost of the internet bill with your fellow students... It also allows you to use other things like Xiaomi devices from old school friends while others are limited to 20Mbps after 7pm!
So far, it is known that the network ports that work in the newly built dorms, such as 18th building, Signal Department. Others need to be explored by yourself, using your computer to test the network port to see if it works, and then install a device to set it up.
Preparation work
If you want to implement this solution, you need to prepare the following:
A router running OpenWRT system (this example uses CatWrt compiled by MiaoEr as an example)
Authentication script
In terms of system requirements, there is no requirement, but it depends on bash and curl, and if you are using the original OpenWRT, you need to install it separately, and it is recommended to pre-install it to avoid problems.
The authentication script is open-source on Github, the project link is: https://github.com/7Ji/auto-whu-standard
Here, we directly use the auto-whu.sh in the project with some minor modifications.
The script is as follows:
Copy#!/bin/bash
# Online check
check_online() {
ping -w1 -W1 -c 1 baidu.com 1>/dev/null 2>&1
[[ $? = 0 ]] && echo