aboutsummaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
Diffstat (limited to 'applets')
-rwxr-xr-xapplets/install.sh11
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
3set -e
4
3if [ "$1" == "" ]; then 5if [ "$1" == "" ]; then
4 echo "No installation directory. aborting." 6 echo "No installation directory, aborting."
5 exit 1; 7 exit 1;
6fi 8fi
7 9
8h=`cat busybox.links` 10# can't just use cat, rmdir is not unique
11#h=`cat busybox.links`
12h=`sort busybox.links | uniq`
9 13
10mkdir -p $1/bin 14mkdir -p $1/bin
11for i in $h ; do 15for 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' `
14done 19done
15rm -f $1/bin/busybox 20rm -f $1/bin/busybox
16install -m 755 busybox $1/bin/busybox 21install -m 755 busybox $1/bin/busybox