opkg feeds: mix with snapshots branch
This commit is contained in:
parent
80f55e9994
commit
67d9f4e51f
@ -30,13 +30,13 @@ 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#snapshots#releases/18.06.6#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.6#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.6#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
|
||||
sed -i 's|root:x:0:0:root:/root:/bin/ash|root:x:0:0:root:/root:/bin/bash|g' /etc/passwd
|
||||
|
||||
sed -i "s/# //g" /etc/opkg/distfeeds.conf
|
||||
|
||||
sed -i '/REDIRECT --to-ports 53/d' /etc/firewall.user
|
||||
echo "iptables -t nat -A PREROUTING -p udp --dport 53 -j REDIRECT --to-ports 53" >> /etc/firewall.user
|
||||
echo "iptables -t nat -A PREROUTING -p tcp --dport 53 -j REDIRECT --to-ports 53" >> /etc/firewall.user
|
||||
|
||||
Loading…
Reference in New Issue
Block a user