lede/package/lean/luci-app-leigod-acc/root/etc/uci-defaults/99-accelerator-config

25 lines
723 B
Bash
Executable File

#!/bin/sh
# check if file exist
if [ ! -f /etc/config/accelerator ]; then
echo "file not exist, should create..."
touch /etc/config/accelerator
uci set accelerator.base=system
uci set accelerator.device=hardware
uci set accelerator.Phone=acceleration
uci set accelerator.PC=acceleration
uci set accelerator.Game=acceleration
uci set accelerator.Unknown=acceleration
uci commit accelerator
fi
uci set accelerator.base.url='https://opapi.nn.com/speed/router/plug/check'
uci set accelerator.base.heart='https://opapi.nn.com/speed/router/heartbeat'
uci set accelerator.base.base_url='https://opapi.nn.com/speed'
uci commit accelerator
echo "Fistboot Disable "
/etc/init.d/acc stop
/etc/init.d/acc disable