2021-05-23 22:34:32 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
2021-07-16 15:53:30 +08:00
|
|
|
uci -q batch <<-EOF
|
|
|
|
|
set system.@system[0].timezone='CST-8'
|
|
|
|
|
set system.@system[0].zonename='Asia/Shanghai'
|
|
|
|
|
|
|
|
|
|
delete system.ntp.server
|
|
|
|
|
add_list system.ntp.server='time1.cloud.tencent.com'
|
2021-07-18 12:06:29 +08:00
|
|
|
add_list system.ntp.server='ntp1.aliyun.com'
|
|
|
|
|
add_list system.ntp.server='ntp.ntsc.ac.cn'
|
|
|
|
|
add_list system.ntp.server='cn.ntp.org.cn'
|
2021-07-16 15:53:30 +08:00
|
|
|
EOF
|
2021-05-23 22:34:32 +08:00
|
|
|
uci commit system
|
|
|
|
|
|
2021-07-16 15:53:30 +08:00
|
|
|
sed -i 's,downloads.openwrt.org,mirrors.tencent.com/lede,g' /etc/opkg/distfeeds.conf
|
2021-05-23 22:34:32 +08:00
|
|
|
|
|
|
|
|
exit 0
|