aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>1999-11-22 05:57:09 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>1999-11-22 05:57:09 +0000
commitb529b093f7e6f0cac998f35c68514fe0a8d82759 (patch)
tree8721b734d86d813ea2e929d706a88e0236b96439
parent538a80208ac61735e6e9242826078043253d589a (diff)
downloadbusybox-w32-b529b093f7e6f0cac998f35c68514fe0a8d82759.tar.gz
busybox-w32-b529b093f7e6f0cac998f35c68514fe0a8d82759.tar.bz2
busybox-w32-b529b093f7e6f0cac998f35c68514fe0a8d82759.zip
Fix bugs
git-svn-id: svn://busybox.net/trunk/busybox@113 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rwxr-xr-xapplets/install.sh7
-rwxr-xr-xinstall.sh7
2 files changed, 4 insertions, 10 deletions
diff --git a/applets/install.sh b/applets/install.sh
index 5f0d2d5da..9721102a1 100755
--- a/applets/install.sh
+++ b/applets/install.sh
@@ -6,18 +6,15 @@ 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
10 9
11h=`sort busybox.links | uniq` 10h=`sort busybox.links | uniq`
12 11
13for i in $h ; do 12for i in $h ; do
14 echo "working on $i now" 13 echo "Symlinking $i to /bin/busybox"
15 mypath=`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\1/g' `; 14 mypath=`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\1/g' `;
16 myapp=`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\2/g' `; 15 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 16 mkdir -p $1$mypath
20 (cd $1$mypath ; ln -s /bin/busybox $1$mypath$myapp ) 17 (cd $1$mypath ; rm -f $1$mypath$myapp ; ln -s /bin/busybox $1$mypath$myapp )
21done 18done
22rm -f $1/bin/busybox 19rm -f $1/bin/busybox
23install -m 755 busybox $1/bin/busybox 20install -m 755 busybox $1/bin/busybox
diff --git a/install.sh b/install.sh
index 5f0d2d5da..9721102a1 100755
--- a/install.sh
+++ b/install.sh
@@ -6,18 +6,15 @@ 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
10 9
11h=`sort busybox.links | uniq` 10h=`sort busybox.links | uniq`
12 11
13for i in $h ; do 12for i in $h ; do
14 echo "working on $i now" 13 echo "Symlinking $i to /bin/busybox"
15 mypath=`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\1/g' `; 14 mypath=`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\1/g' `;
16 myapp=`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\2/g' `; 15 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 16 mkdir -p $1$mypath
20 (cd $1$mypath ; ln -s /bin/busybox $1$mypath$myapp ) 17 (cd $1$mypath ; rm -f $1$mypath$myapp ; ln -s /bin/busybox $1$mypath$myapp )
21done 18done
22rm -f $1/bin/busybox 19rm -f $1/bin/busybox
23install -m 755 busybox $1/bin/busybox 20install -m 755 busybox $1/bin/busybox