diff options
Diffstat (limited to 'applets')
-rwxr-xr-x | applets/install.sh | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/applets/install.sh b/applets/install.sh index 4a0b83254..29c9e26d9 100755 --- a/applets/install.sh +++ b/applets/install.sh | |||
@@ -1,16 +1,21 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | set -e | ||
4 | |||
3 | if [ "$1" == "" ]; then | 5 | if [ "$1" == "" ]; then |
4 | echo "No installation directory. aborting." | 6 | echo "No installation directory, aborting." |
5 | exit 1; | 7 | exit 1; |
6 | fi | 8 | fi |
7 | 9 | ||
8 | h=`cat busybox.links` | 10 | # can't just use cat, rmdir is not unique |
11 | #h=`cat busybox.links` | ||
12 | h=`sort busybox.links | uniq` | ||
9 | 13 | ||
10 | mkdir -p $1/bin | 14 | mkdir -p $1/bin |
11 | for i in $h ; do | 15 | for i in $h ; do |
16 | [ ${verbose} ] && echo " making link to $i" | ||
12 | mkdir -p $1/`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\1/g' ` | 17 | mkdir -p $1/`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\1/g' ` |
13 | (cd $1/bin ; ln -s busybox `echo $i | sed -e 's/\(^.*\/\)\(.*\)/\2/g' ` ) | 18 | ln -s busybox $1/bin/`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\2/g' ` |
14 | done | 19 | done |
15 | rm -f $1/bin/busybox | 20 | rm -f $1/bin/busybox |
16 | install -m 755 busybox $1/bin/busybox | 21 | install -m 755 busybox $1/bin/busybox |