blob: 769d1f4a3d70e473fda45b6cda89ab56b8d0d3fe [file] [log] [blame]
Eric Anderseneded54b1999-11-12 08:03:23 +00001#!/bin/sh
2
Eric Andersena9c95ea1999-11-15 17:33:30 +00003set -e
4
Eric Anderseneded54b1999-11-12 08:03:23 +00005if [ "$1" == "" ]; then
Eric Andersena9c95ea1999-11-15 17:33:30 +00006 echo "No installation directory, aborting."
Eric Anderseneded54b1999-11-12 08:03:23 +00007 exit 1;
8fi
9
Eric Andersena9c95ea1999-11-15 17:33:30 +000010h=`sort busybox.links | uniq`
Eric Anderseneded54b1999-11-12 08:03:23 +000011
Eric Anderseneded54b1999-11-12 08:03:23 +000012for i in $h ; do
Eric Andersenb186d981999-12-03 09:19:54 +000013 echo " $1$i -> /bin/busybox"
14 mkdir -p $1/`echo $i | sed -e 's/\/[^\/]*$//' `
Eric Andersend00c2621999-12-07 08:37:31 +000015 ln -fs /bin/busybox $1$i
Eric Anderseneded54b1999-11-12 08:03:23 +000016done
17rm -f $1/bin/busybox
18install -m 755 busybox $1/bin/busybox
19
Eric Andersencb41c2e1999-11-22 07:41:00 +000020exit 0