4 if [ "$prefix" = "" ]; then
5 echo "No installation directory, aborting."
8 if [ "$2" = "--hardlinks" ]; then
13 h=`sort busybox.links | uniq`
16 rm -f $prefix/bin/busybox || exit 1
17 mkdir -p $prefix/bin || exit 1
18 install -m 755 busybox $prefix/bin/busybox || exit 1
22 mkdir -p $prefix/$appdir || exit 1
23 if [ "$2" = "--hardlinks" ]; then
24 bb_path="$prefix/bin/busybox"
34 bb_path="../bin/busybox"
37 bb_path="../../bin/busybox"
40 echo "Unknown installation directory: $appdir"
45 echo " $prefix$i -> $bb_path"
46 ln $linkopts $bb_path $prefix$i || exit 1