mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 11:09:57 +08:00
de6c207899
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org> (cherry picked from commit c90db07cf9c325df5e1855681e9b7729e24ab090)
24 lines
663 B
Bash
Executable File
24 lines
663 B
Bash
Executable File
#!/bin/sh
|
|
|
|
uci -q get system.@imm_init[0] > "/dev/null" || uci -q add system imm_init > "/dev/null"
|
|
|
|
if ! uci -q get system.@imm_init[0].system_chn > "/dev/null"; then
|
|
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="ntp.tencent.com"
|
|
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"
|
|
|
|
set system.@imm_init[0].system_chn="1"
|
|
commit system
|
|
EOF
|
|
fi
|
|
|
|
sed -i.bak "s,downloads.immortalwrt.org,mirrors.vsean.net/openwrt,g" "/etc/opkg/distfeeds.conf"
|
|
|
|
exit 0
|