7 if [ "$prefix" = "" ]; then
8 echo "No installation directory, aborting."
11 if [ "$2" = "--hardlinks" ]; then
16 h=`sort busybox.links | uniq`
19 rm -f $prefix/bin/busybox || exit 1
20 mkdir -p $prefix/bin || exit 1
21 install -m 755 busybox $prefix/bin/busybox || exit 1
25 mkdir -p $prefix/$appdir || exit 1
26 if [ "$2" = "--hardlinks" ]; then
27 bb_path="$prefix/bin/busybox"
37 bb_path="../bin/busybox"
40 bb_path="../../bin/busybox"
43 echo "Unknown installation directory: $appdir"
48 echo " $prefix$i -> $bb_path"
49 ln $linkopts $bb_path $prefix$i || exit 1