Tested in Openwrt 22.03.0-rc6.
bash curl coreutils-base64
-
Place
autoauth.sh
,autoauth_common.sh
anduser.conf
in/etc
-
Edit the username and password in
user.conf
-
Place
autoauth
in/etc/init.d
-
Grant executable privileges
chmod 500 /etc/init.d/autoauth
chmod 500 /etc/autoauth_common.sh
chmod 500 /etc/autoauth.sh
-
Run
/etc/init.d/autoauth start
to 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 enable
to enable autostart