aboutsummaryrefslogtreecommitdiff
path: root/applets/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'applets/install.sh')
-rwxr-xr-xapplets/install.sh15
1 files changed, 9 insertions, 6 deletions
diff --git a/applets/install.sh b/applets/install.sh
index 29c9e26d9..5f0d2d5da 100755
--- a/applets/install.sh
+++ b/applets/install.sh
@@ -6,17 +6,20 @@ if [ "$1" == "" ]; then
6 echo "No installation directory, aborting." 6 echo "No installation directory, aborting."
7 exit 1; 7 exit 1;
8fi 8fi
9rm -rf $1
9 10
10# can't just use cat, rmdir is not unique
11#h=`cat busybox.links`
12h=`sort busybox.links | uniq` 11h=`sort busybox.links | uniq`
13 12
14mkdir -p $1/bin
15for i in $h ; do 13for i in $h ; do
16 [ ${verbose} ] && echo " making link to $i" 14 echo "working on $i now"
17 mkdir -p $1/`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\1/g' ` 15 mypath=`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\1/g' `;
18 ln -s busybox $1/bin/`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\2/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 )
19done 21done
20rm -f $1/bin/busybox 22rm -f $1/bin/busybox
21install -m 755 busybox $1/bin/busybox 23install -m 755 busybox $1/bin/busybox
22 24
25