mirror of
https://github.com/routerich/RouterichAX3000_configs.git
synced 2025-12-30 02:38:06 +03:00
fix
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
DESCRIPTION=$(ubus call system board | jsonfilter -e '@.release.description')
|
DESCRIPTION=$(ubus call system board | jsonfilter -e '@.release.description')
|
||||||
VERSION=$(ubus call system board | jsonfilter -e '@.release.version')
|
VERSION=$(ubus call system board | jsonfilter -e '@.release.version')
|
||||||
findKey="Routerich"
|
findKey="RouteRich"
|
||||||
findVersion="24.10.2"
|
findVersion="24.10.2"
|
||||||
|
|
||||||
if echo "$DESCRIPTION" | grep -qi -- "$findKey" && printf '%s\n%s\n' "$findVersion" "$VERSION" | sort -V | tail -n1 | grep -qx -- "$VERSION"; then
|
if echo "$DESCRIPTION" | grep -qi -- "$findKey" && printf '%s\n%s\n' "$findVersion" "$VERSION" | sort -V | tail -n1 | grep -qx -- "$VERSION"; then
|
||||||
|
|||||||
Reference in New Issue
Block a user