
#150826
#bash has 'which' utility, which is broken (i found "which pwd" does not work).
#instead, use busybox 'which' applet.
FNDWHICH="$(find . -type f -name which | head -n 1)"
if [ "$FNDWHICH" ];then
 rm -f $FNDWHICH
fi

#150826 might as well check this:
FNDSH="$(find . -type l -name sh)"
if [ ! "$FNDSH" ];then
 FNDBASH="$(find bin usr/bin -type f -name bash | head -n 1)"
 if [ "$FNDBASH" ];then
  DIRBASH="$(dirname ${FNDBASH})"
  ln -s bash ./${DIRBASH}/sh
 fi
fi
