fix install.sh

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2011-04-04 03:53:23 +02:00
parent e32d05b708
commit 12140e607c

View File

@ -74,12 +74,12 @@ for i in $h; do
echo "#!/bin/busybox" > $prefix$i echo "#!/bin/busybox" > $prefix$i
chmod +x $prefix/$i chmod +x $prefix/$i
fi fi
echo " $prefix$i" echo " $prefix/$i"
else else
if [ "$2" = "--hardlinks" ]; then if [ "$2" = "--hardlinks" ]; then
bb_path="$prefix/bin/busybox" bb_path="$prefix/bin/busybox"
else else
case "$appdir" in case "/$appdir" in
/) /)
bb_path="bin/busybox" bb_path="bin/busybox"
;; ;;
@ -92,17 +92,21 @@ for i in $h; do
/usr/bin|/usr/sbin) /usr/bin|/usr/sbin)
bb_path="../../bin/busybox" bb_path="../../bin/busybox"
;; ;;
/root) # root/linuxrc (?!)
bb_path="bin/busybox"
i=$(basename $i)
;;
*) *)
echo "Unknown installation directory: $appdir" echo "Unknown installation directory: $appdir"
exit 1 exit 1
;; ;;
esac esac
fi fi
if [ "$noclobber" = "0" ] || [ ! -e "$prefix$i" ]; then if [ "$noclobber" = "0" ] || [ ! -e "$prefix/$i" ]; then
echo " $prefix$i -> $bb_path" echo " $prefix/$i -> $bb_path"
ln $linkopts $bb_path $prefix$i || exit 1 ln $linkopts $bb_path $prefix/$i || exit 1
else else
echo " $prefix$i already exists" echo " $prefix/$i already exists"
fi fi
fi fi
done done