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/\/[^\/]*$//' ` | ||||
Eric Andersen | d00c262 | 1999-12-07 08:37:31 +0000 | [diff] [blame] | 15 | ln -fs /bin/busybox $1$i |
Eric Andersen | eded54b | 1999-11-12 08:03:23 +0000 | [diff] [blame] | 16 | done |
17 | rm -f $1/bin/busybox | ||||
18 | install -m 755 busybox $1/bin/busybox | ||||
19 | |||||
Eric Andersen | cb41c2e | 1999-11-22 07:41:00 +0000 | [diff] [blame] | 20 | exit 0 |