blob: 5f0d2d5da09dd5694e96c9caccea888affba2142 [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
Eric Andersen6a76e651999-11-19 05:31:45 +00009rm -rf $1
Eric Anderseneded54b1999-11-12 08:03:23 +000010
Eric Andersena9c95ea1999-11-15 17:33:30 +000011h=`sort busybox.links | uniq`
Eric Anderseneded54b1999-11-12 08:03:23 +000012
Eric Anderseneded54b1999-11-12 08:03:23 +000013for i in $h ; do
Eric Andersen6a76e651999-11-19 05:31:45 +000014 echo "working on $i now"
15 mypath=`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\1/g' `;
16 myapp=`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\2/g' `;
17 echo "mkdir -p $1$mypath"
18 echo "(cd $1$mypath ; ln -s /bin/busybox $1$mypath$myapp )"
19 mkdir -p $1$mypath
20 (cd $1$mypath ; ln -s /bin/busybox $1$mypath$myapp )
Eric Anderseneded54b1999-11-12 08:03:23 +000021done
22rm -f $1/bin/busybox
23install -m 755 busybox $1/bin/busybox
24
Eric Andersen6a76e651999-11-19 05:31:45 +000025