Tested in Openwrt 22.03.0-rc6.
bash curl coreutils-base64
-
Place
autoauth.sh,autoauth_common.shanduser.confin/etc -
Edit the username and password in
user.conf -
Place
autoauthin/etc/init.d -
Grant executable privileges
chmod 500 /etc/init.d/autoauthchmod 500 /etc/autoauth_common.shchmod 500 /etc/autoauth.sh -
Run
/etc/init.d/autoauth startto test if it works (There will be no output for normal operation, please check the system log to determine if it is normal.) -
Run
/etc/init.d/autoauth enableto enable autostart