Browse Source

install_easy: universal linked_to_busybox detection

pull/80/head
bol-van 3 years ago
parent
commit
2d9ba2fe82
  1. 18
      install_easy.sh

18
install_easy.sh

@ -915,15 +915,15 @@ check_packages_openwrt()
is_linked_to_busybox() is_linked_to_busybox()
{ {
local F P local IFS F P
F=/usr/bin/$1
P="$(readlink $F)" IFS=:
if [ -z "$P" ] && [ -x $F ] && [ ! -L $F ]; then return 1; fi for path in $PATH; do
[ "${P%busybox*}" != "$P" ] && return F=$path/$1
F=/bin/$1 P="$(readlink $F)"
P="$(readlink $F)" if [ -z "$P" ] && [ -x $F ] && [ ! -L $F ]; then return 1; fi
if [ -z "$P" ] && [ -x $F ] && [ ! -L $F ]; then return 1; fi [ "${P%busybox*}" != "$P" ] && return
[ "${P%busybox*}" != "$P" ] done
} }
check_prerequisites_openwrt() check_prerequisites_openwrt()

Loading…
Cancel
Save