Skip to content

Commit

Permalink
install.sh: openwrt-18.06 is no longer supported
Browse files Browse the repository at this point in the history
Signed-off-by: sbwml <admin@cooluc.com>
  • Loading branch information
sbwml committed Aug 14, 2024
1 parent 7f3cdca commit d011160
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ else
exit 1
fi

# check
if [ ! -d "/usr/share/luci/menu.d" ]; then
echo -e "${RED_COLOR}OpenWrt LuCI version is not supports.${RES}"
echo -e "${RED_COLOR}Minimum OpenWrt Version: openwrt-21.02 or latest${RES}"
exit 1
fi

# temp
temp_dir=$(mktemp -d) || exit 1

Expand All @@ -24,7 +31,7 @@ country_code=$(echo $ip_info | sed -r 's/.*country_code":"([^"]*).*/\1/')
if [ $country_code = "CN" ]; then
google_status=$(curl -I -4 -m 3 -o /dev/null -s -w %{http_code} http://www.google.com/generate_204)
if [ ! $google_status = "204" ];then
mirror="https://gh.cooluc.com/"
mirror="https://mirror.ghproxy.com/"
fi
fi

Expand All @@ -41,10 +48,6 @@ CHECK() (
if [[ ! $verif ]]; then
echo -e "${RED_COLOR}Error! The current \"$platform\" platform is not currently supported.${RES}"
exit 1;
else
echo -e "${GREEN_COLOR}Install luci-compat ...${RES}\n"
opkg update
opkg install luci-compat
fi
)

Expand Down

3 comments on commit d011160

@SpeedPartner
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这就很尴尬了...希望能将alist编译源码也放到lua分支内,方便一起编译,谢谢~

@sbwml
Copy link
Owner Author

@sbwml sbwml commented on d011160 Aug 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这就很尴尬了...希望能将alist编译源码也放到lua分支内,方便一起编译,谢谢~

这个操作在编译期间来实现会更简单。因为如果同时在 lua 分支更新 alist 包,这意味着需要维护两个分支。。。

git clone https://github.com/sbwml/luci-app-alist package/new/alist
rm -rf package/new/alist/luci-app-alist
git clone https://github.com/sbwml/luci-app-alist package/new/alist/luci-app-alist -b lua --depth=1

@SpeedPartner
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

非常感谢!

Please sign in to comment.