blob: 65190f59d85b10ed6f1bd18c4c63f13b1c5505c2 [file] [log] [blame]
Eric Anderseneded54b1999-11-12 08:03:23 +00001#!/bin/sh
2
Eric Andersena9c95ea1999-11-15 17:33:30 +00003set -e
4
Erik Andersen9ffdaa62000-02-11 21:55:04 +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
Erik Andersen9a8195c2000-04-18 23:32:10 +000018mkdir -p $1/bin
Eric Anderseneded54b1999-11-12 08:03:23 +000019install -m 755 busybox $1/bin/busybox
20
Eric Andersencb41c2e1999-11-22 07:41:00 +000021exit 0