--- smage/trunk/include/mtools.sminc 2010/01/02 21:33:51 15 +++ smage/trunk/include/mtools.sminc 2010/01/02 21:53:20 16 @@ -576,6 +576,10 @@ { local file local dest + local lnopts="-v" + + # check for busybox + [[ $(readlink $(which ln)) = */busybox ]] && lnopts="" [[ -z $1 ]] && die "No file given" @@ -605,12 +609,12 @@ # 1. - library.so.1.0.0 -> library.so.1.0 if [ "${file%.*}" != *.so ] then - ln -v -snf $(basename ${file}) ${BINDIR}/${dest}/$(basename ${file%.*}) + ln ${lnopts} -snf $(basename ${file}) ${BINDIR}/${dest}/$(basename ${file%.*}) fi # 2. - library.so.1.0.0 -> library.so.1 if [ "${file%.*.*}" != *.so ] then - ln -v -snf $(basename ${file}) ${BINDIR}/${dest}/$(basename ${file%.*.*}) + ln ${lnopts} -snf $(basename ${file}) ${BINDIR}/${dest}/$(basename ${file%.*.*}) fi } @@ -732,9 +736,13 @@ { local symlink="$1" local pathto="$2" + local lnopts="-v" + + # check for busybox + [[ $(readlink $(which ln)) = */busybox ]] && lnopts="" [[ -z ${symlink} ]] && die "No symlink given." [[ -z ${pathto} ]] && die "No path given." - ln -v -snf ${symlink} ${BINDIR}/${pathto} || die + ln ${lnopts} -snf ${symlink} ${BINDIR}/${pathto} || die }