Skip to content

Commit

Permalink
Update gl-inet.sh
Browse files Browse the repository at this point in the history
check bash env
  • Loading branch information
wukongdaily committed Nov 13, 2023
1 parent a5fe380 commit b4856da
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions gl-inet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,17 @@ set_glfan_temp() {
echo "错误: 请输入整数."
fi
}
check_bash_installed() {
if [ -x "/bin/bash" ]; then
echo "rollback_old_version ......"
else
setup_software_source 0
opkg install bash
fi
}

rollback_old_version() {
setup_software_source 0
opkg install bash
check_bash_installed
download_url="https://github.com/wukongdaily/gl-inet-onescript/raw/1f25c161512e9b416227f60656e8c2139c993f69/gl-inet.run"
local_file_path="/tmp/gl-inet.run"
wget -O "$local_file_path" "$download_url"
Expand Down

0 comments on commit b4856da

Please sign in to comment.