parent
a38c7dc1ae
commit
89c0471561
@ -43,7 +43,11 @@ case "$action" in
|
||||
version)
|
||||
case "$1" in
|
||||
app)
|
||||
opkg list-installed | grep "luci-app-mihomo" | cut -d " " -f 3
|
||||
if [ -x "/bin/opkg" ]; then
|
||||
opkg list-installed "luci-app-mihomo" | cut -d " " -f 3
|
||||
elif [ -x "/usr/bin/apk" ]; then
|
||||
apk list -I "luci-app-mihomo" | cut -d ' ' -f 1 | cut -d '-' -f 4
|
||||
fi
|
||||
;;
|
||||
core)
|
||||
mihomo -v | grep "Mihomo" | cut -d " " -f 3
|
||||
|
Loading…
Reference in New Issue
Block a user