gl-inet-onescript/prepare.sh
wukongdaily c0445fec0d 增加prepare.sh
如果要运行更多函数 建议先执行它
2023-09-22 22:59:35 +08:00

12 lines
276 B
Bash

#!/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