--- trunk/mage/usr/lib/mage/mage4.functions.sh 2012/03/12 23:21:52 1781 +++ trunk/mage/usr/lib/mage/mage4.functions.sh 2012/10/12 12:59:32 1952 @@ -3261,16 +3261,20 @@ need_busybox_support() { local cmd + local busybox cmd="$1" - if [[ -x /bin/busybox ]] - then - if [[ $(readlink $(which ${cmd})) = /bin/busybox ]] + for busybox in {,/usr}/bin/busybox + do + if [[ -x ${busybox} ]] then - # needs busybox support - return 0 + if [[ $(readlink $(which ${cmd})) = ${busybox} ]] + then + # needs busybox support + return 0 + fi fi - fi + done # no busybox return 1