mirror of
https://github.com/routerich/RouterichAX3000_configs.git
synced 2025-12-06 03:26:43 +03:00
Fix check version sing-box
This commit is contained in:
@@ -398,7 +398,7 @@ checkPackageAndInstall "unzip" "1"
|
|||||||
manage_package "podkop" "enable" "stop"
|
manage_package "podkop" "enable" "stop"
|
||||||
|
|
||||||
PACKAGE="sing-box"
|
PACKAGE="sing-box"
|
||||||
REQUIRED_VERSION="1.11.15-1"
|
REQUIRED_VERSION="1.11.15"
|
||||||
|
|
||||||
INSTALLED_VERSION=$(opkg list-installed | grep "^$PACKAGE" | cut -d ' ' -f 3)
|
INSTALLED_VERSION=$(opkg list-installed | grep "^$PACKAGE" | cut -d ' ' -f 3)
|
||||||
if [ -n "$INSTALLED_VERSION" ] && [ "$INSTALLED_VERSION" != "$REQUIRED_VERSION" ]; then
|
if [ -n "$INSTALLED_VERSION" ] && [ "$INSTALLED_VERSION" != "$REQUIRED_VERSION" ]; then
|
||||||
@@ -407,7 +407,7 @@ if [ -n "$INSTALLED_VERSION" ] && [ "$INSTALLED_VERSION" != "$REQUIRED_VERSION"
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
INSTALLED_VERSION=$(opkg list-installed | grep "^$PACKAGE")
|
INSTALLED_VERSION=$(opkg list-installed | grep "^$PACKAGE")
|
||||||
if [ -n "$INSTALLED_VERSION" ]; then
|
if [ -z "$INSTALLED_VERSION" ]; then
|
||||||
PACK_NAME="sing-box"
|
PACK_NAME="sing-box"
|
||||||
AWG_DIR="/tmp/$PACK_NAME"
|
AWG_DIR="/tmp/$PACK_NAME"
|
||||||
SINGBOX_FILENAME="sing-box_1.11.15_openwrt_aarch64_cortex-a53.ipk"
|
SINGBOX_FILENAME="sing-box_1.11.15_openwrt_aarch64_cortex-a53.ipk"
|
||||||
|
|||||||
Reference in New Issue
Block a user