Update mt3000.sh
This commit is contained in:
parent
e2380ba9a2
commit
832f6080a0
10
mt3000.sh
10
mt3000.sh
@ -33,11 +33,21 @@ switch_glinet_opkg() {
|
||||
cp /etc/opkg/distfeeds.conf /etc/opkg/distfeeds.conf.bk
|
||||
mt3000_opkg="https://cafe.cpolar.cn/wkdaily/gl-inet-onescript/raw/branch/master/mt-3000/distfeeds.conf"
|
||||
wget -O /etc/opkg/distfeeds.conf ${mt3000_opkg}
|
||||
FILE="/etc/opkg.conf"
|
||||
# 检查并注释掉 option check_signature 这一行
|
||||
if grep -q "^option check_signature" "$FILE"; then
|
||||
sed -i 's/^option check_signature/# option check_signature/' "$FILE"
|
||||
fi
|
||||
}
|
||||
|
||||
# 切换到iStoreOS的OPKG
|
||||
switch_istoreos_opkg() {
|
||||
cp /etc/opkg/distfeeds.conf.bk /etc/opkg/distfeeds.conf
|
||||
FILE="/etc/opkg.conf"
|
||||
# 检查并还原被注释的 option check_signature 这一行
|
||||
if grep -q "^# option check_signature" "$FILE"; then
|
||||
sed -i 's/^# option check_signature/option check_signature/' "$FILE"
|
||||
fi
|
||||
}
|
||||
|
||||
# 卸载USB设备
|
||||
|
Loading…
Reference in New Issue
Block a user