parent
ba3437022f
commit
c0445fec0d
|
@ -1,4 +1,11 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
opkg update
|
check_bash_installed() {
|
||||||
opkg install bash
|
if [ -x "/bin/bash" ]; then
|
||||||
|
echo "downloading gl-inet.sh ......"
|
||||||
|
else
|
||||||
|
opkg update
|
||||||
|
opkg install bash
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
check_bash_installed
|
||||||
wget -O /tmp/gl-inet.sh https://ghproxy.com/https://raw.githubusercontent.com/wukongdaily/gl-inet-onescript/master/gl-inet.sh && chmod +x /tmp/gl-inet.sh && /tmp/gl-inet.sh
|
wget -O /tmp/gl-inet.sh https://ghproxy.com/https://raw.githubusercontent.com/wukongdaily/gl-inet-onescript/master/gl-inet.sh && chmod +x /tmp/gl-inet.sh && /tmp/gl-inet.sh
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# 默认情况下MT3000和MT2500A的环境是ash
|
||||||
|
# 建议安装bash 满足更多的函数调用
|
||||||
|
check_bash_installed() {
|
||||||
|
if [ -x "/bin/bash" ]; then
|
||||||
|
echo "downloading gl-inet.sh ......"
|
||||||
|
else
|
||||||
|
opkg update
|
||||||
|
opkg install bash
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
check_bash_installed
|
Loading…
Reference in New Issue