mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-26 20:20:53 +03:00
install_easy: universal linked_to_busybox detection
This commit is contained in:
parent
077849094e
commit
2d9ba2fe82
@ -915,15 +915,15 @@ check_packages_openwrt()
|
||||
|
||||
is_linked_to_busybox()
|
||||
{
|
||||
local F P
|
||||
F=/usr/bin/$1
|
||||
local IFS F P
|
||||
|
||||
IFS=:
|
||||
for path in $PATH; do
|
||||
F=$path/$1
|
||||
P="$(readlink $F)"
|
||||
if [ -z "$P" ] && [ -x $F ] && [ ! -L $F ]; then return 1; fi
|
||||
[ "${P%busybox*}" != "$P" ] && return
|
||||
F=/bin/$1
|
||||
P="$(readlink $F)"
|
||||
if [ -z "$P" ] && [ -x $F ] && [ ! -L $F ]; then return 1; fi
|
||||
[ "${P%busybox*}" != "$P" ]
|
||||
done
|
||||
}
|
||||
|
||||
check_prerequisites_openwrt()
|
||||
|
Loading…
Reference in New Issue
Block a user