nvram set ssh_en=1 nvram set telnet_en=1 nvram set uart_en=1 nvram set boot_wait=on nvram unset ISP_SN nvram unset ISP_EI nvram unset andlink_dev_key nvram commit
sed -i 's/channel=.*/channel="debug"/g' /etc/init.d/dropbear /etc/init.d/dropbear restart
mkdir /data/auto_ssh cd /data/auto_ssh curl -O https://fastly.jsdelivr.net/gh/lemoeo/AX6S@main/auto_ssh.sh chmod +x auto_ssh.sh
uci set firewall.auto_ssh=include uci set firewall.auto_ssh.type='script' uci set firewall.auto_ssh.path='/data/auto_ssh/auto_ssh.sh' uci set firewall.auto_ssh.enabled='1' uci commit firewall
uci set system.@system[0].timezone='CST-8' uci set system.@system[0].webtimezone='CST-8' uci set system.@system[0].timezoneindex='2.84' uci commit
取消运营商限制
telnet 中执行
开机启动脚本,删除运营商插件
添加开机启动项
1 2 3 4 5 6
uci set firewall.auto_run=include uci set firewall.auto_run.type='script' uci set firewall.auto_run.path='/data/auto_run.sh' uci set firewall.auto_run.enabled='1' uci commit firewall chmod 777 /data/auto_run.sh
#!/bin/sh # Check if the script is being run as root if [ "$(id -u)" != "0" ]; then echo "This script needs to be run as root." 1>&2 exit 1 fi # Execute the opkg remove command to uninstall the andlink-napi package opkg remove andlink-napi opkg remove pluginmanager opkg remove isp-dp # Check the exit status of the command if [ $? -eq 0 ]; then echo "The andlink-napi package has been successfully uninstalled." else echo "An error occurred while uninstalling the andlink-napi package." fi