summaryrefslogtreecommitdiff
path: root/applets/install.sh
diff options
context:
space:
mode:
authorDenys Vlasenko2011-04-04 03:53:23 +0200
committerDenys Vlasenko2011-04-04 03:53:23 +0200
commit12140e607cad045a41aaeb2ea54d4d9938645f4a (patch)
tree45503c56ef09d145cd408573525816e307e9f27f /applets/install.sh
parente32d05b708a31716e0a788c43f81990436535140 (diff)
downloadbusybox-12140e607cad045a41aaeb2ea54d4d9938645f4a.zip
busybox-12140e607cad045a41aaeb2ea54d4d9938645f4a.tar.gz
fix install.sh
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'applets/install.sh')
-rwxr-xr-xapplets/install.sh16
1 files changed, 10 insertions, 6 deletions
diff --git a/applets/install.sh b/applets/install.sh
index 32049b1..8f449d6 100755
--- a/applets/install.sh
+++ b/applets/install.sh
@@ -74,12 +74,12 @@ for i in $h; do
echo "#!/bin/busybox" > $prefix$i
chmod +x $prefix/$i
fi
- echo " $prefix$i"
+ echo " $prefix/$i"
else
if [ "$2" = "--hardlinks" ]; then
bb_path="$prefix/bin/busybox"
else
- case "$appdir" in
+ case "/$appdir" in
/)
bb_path="bin/busybox"
;;
@@ -92,17 +92,21 @@ for i in $h; do
/usr/bin|/usr/sbin)
bb_path="../../bin/busybox"
;;
+ /root) # root/linuxrc (?!)
+ bb_path="bin/busybox"
+ i=$(basename $i)
+ ;;
*)
echo "Unknown installation directory: $appdir"
exit 1
;;
esac
fi
- if [ "$noclobber" = "0" ] || [ ! -e "$prefix$i" ]; then
- echo " $prefix$i -> $bb_path"
- ln $linkopts $bb_path $prefix$i || exit 1
+ if [ "$noclobber" = "0" ] || [ ! -e "$prefix/$i" ]; then
+ echo " $prefix/$i -> $bb_path"
+ ln $linkopts $bb_path $prefix/$i || exit 1
else
- echo " $prefix$i already exists"
+ echo " $prefix/$i already exists"
fi
fi
done