2023-09-22 22:59:35 +08:00
|
|
|
#!/bin/bash
|
|
|
|
# 默认情况下MT3000和MT2500A的环境是ash
|
|
|
|
# 建议安装bash 满足更多的函数调用
|
|
|
|
check_bash_installed() {
|
|
|
|
if [ -x "/bin/bash" ]; then
|
2023-09-22 23:04:59 +08:00
|
|
|
echo "downloading prepare.sh ......"
|
2023-09-22 22:59:35 +08:00
|
|
|
else
|
|
|
|
opkg update
|
|
|
|
opkg install bash
|
|
|
|
fi
|
|
|
|
}
|
2023-09-22 23:04:59 +08:00
|
|
|
check_bash_installed
|