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 | ||||
9 | |||||
Eric Andersen | a9c95ea | 1999-11-15 17:33:30 +0000 | [diff] [blame] | 10 | h=`sort busybox.links | uniq` |
Eric Andersen | eded54b | 1999-11-12 08:03:23 +0000 | [diff] [blame] | 11 | |
Eric Andersen | eded54b | 1999-11-12 08:03:23 +0000 | [diff] [blame] | 12 | for i in $h ; do |
Eric Andersen | b186d98 | 1999-12-03 09:19:54 +0000 | [diff] [blame^] | 13 | echo " $1$i -> /bin/busybox" |
14 | mkdir -p $1/`echo $i | sed -e 's/\/[^\/]*$//' ` | ||||
15 | rm -f $1$i | ||||
16 | ln -s /bin/busybox $1$i | ||||
Eric Andersen | eded54b | 1999-11-12 08:03:23 +0000 | [diff] [blame] | 17 | done |
18 | rm -f $1/bin/busybox | ||||
19 | install -m 755 busybox $1/bin/busybox | ||||
20 | |||||
Eric Andersen | cb41c2e | 1999-11-22 07:41:00 +0000 | [diff] [blame] | 21 | exit 0 |