default-settings: use tencent mirror by default

This commit is contained in:
CN_SZTL 2020-04-08 00:15:37 +08:00
parent f0baa49271
commit 95a85c8be7
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -29,9 +29,9 @@ sed -i 's/services/nas/g' /usr/lib/lua/luci/view/minidlna_status.htm
ln -sf /sbin/ip /usr/bin/ip
sed -i 's#http://downloads.openwrt.org#https://mirrors.ustc.edu.cn/lede#g' /etc/opkg/distfeeds.conf
sed -i 's#src/gz openwrt_luci https://mirrors.ustc.edu.cn/lede/snapshots#src/gz openwrt_luci https://mirrors.ustc.edu.cn/lede/releases/18.06.8#g' /etc/opkg/distfeeds.conf
sed -i 's#src/gz openwrt_packages https://mirrors.ustc.edu.cn/lede/snapshots#src/gz openwrt_packages https://mirrors.ustc.edu.cn/lede/releases/18.06.8#g' /etc/opkg/distfeeds.conf
sed -i 's#http://downloads.openwrt.org#https://mirrors.cloud.tencent.com/lede#g' /etc/opkg/distfeeds.conf
sed -i 's#src/gz openwrt_luci https://mirrors.cloud.tencent.com/lede/snapshots#src/gz openwrt_luci https://mirrors.cloud.tencent.com/lede/releases/18.06.8#g' /etc/opkg/distfeeds.conf
sed -i 's#src/gz openwrt_packages https://mirrors.cloud.tencent.com/lede/snapshots#src/gz openwrt_packages https://mirrors.cloud.tencent.com/lede/releases/18.06.8#g' /etc/opkg/distfeeds.conf
sed -i "s/# //g" /etc/opkg/distfeeds.conf
sed -i 's/root::0:0:99999:7:::/root:$1$V4UetPzk$CYXluq4wUazHjmCDBCqXF.:0:0:99999:7:::/g' /etc/shadow