Eric Andersen | eded54b | 1999-11-12 08:03:23 +0000 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
Eric Andersen | a9c95ea | 1999-11-15 17:33:30 +0000 | [diff] [blame] | 3 | set -e |
| 4 | |
Eric Andersen | eded54b | 1999-11-12 08:03:23 +0000 | [diff] [blame] | 5 | if [ "$1" == "" ]; then |
Eric Andersen | a9c95ea | 1999-11-15 17:33:30 +0000 | [diff] [blame] | 6 | echo "No installation directory, aborting." |
Eric Andersen | eded54b | 1999-11-12 08:03:23 +0000 | [diff] [blame] | 7 | exit 1; |
| 8 | fi |
Eric Andersen | 6a76e65 | 1999-11-19 05:31:45 +0000 | [diff] [blame] | 9 | rm -rf $1 |
Eric Andersen | eded54b | 1999-11-12 08:03:23 +0000 | [diff] [blame] | 10 | |
Eric Andersen | a9c95ea | 1999-11-15 17:33:30 +0000 | [diff] [blame] | 11 | h=`sort busybox.links | uniq` |
Eric Andersen | eded54b | 1999-11-12 08:03:23 +0000 | [diff] [blame] | 12 | |
Eric Andersen | eded54b | 1999-11-12 08:03:23 +0000 | [diff] [blame] | 13 | for i in $h ; do |
Eric Andersen | 6a76e65 | 1999-11-19 05:31:45 +0000 | [diff] [blame] | 14 | 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 Andersen | eded54b | 1999-11-12 08:03:23 +0000 | [diff] [blame] | 21 | done |
| 22 | rm -f $1/bin/busybox |
| 23 | install -m 755 busybox $1/bin/busybox |
| 24 | |
Eric Andersen | 6a76e65 | 1999-11-19 05:31:45 +0000 | [diff] [blame] | 25 | |