Fix bugs
authorEric Andersen <andersen@codepoet.org>
Mon, 22 Nov 1999 05:57:09 +0000 (05:57 -0000)
committerEric Andersen <andersen@codepoet.org>
Mon, 22 Nov 1999 05:57:09 +0000 (05:57 -0000)
applets/install.sh
install.sh

index 5f0d2d5da09dd5694e96c9caccea888affba2142..9721102a1a67c16b581f9834dfa06a24d30d60d9 100755 (executable)
@@ -6,18 +6,15 @@ if [ "$1" == "" ]; then
     echo "No installation directory, aborting."
     exit 1;
 fi
-rm -rf $1
 
 h=`sort busybox.links | uniq`
 
 for i in $h ; do
-       echo "working on $i now"
+       echo "Symlinking $i to /bin/busybox"
        mypath=`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\1/g' `;
        myapp=`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\2/g' `;
-       echo "mkdir -p $1$mypath"
-       echo "(cd $1$mypath ; ln -s /bin/busybox $1$mypath$myapp )"
        mkdir -p $1$mypath
-       (cd $1$mypath ; ln -s /bin/busybox $1$mypath$myapp )
+       (cd $1$mypath ; rm -f $1$mypath$myapp ; ln -s /bin/busybox $1$mypath$myapp )
 done
 rm -f $1/bin/busybox
 install -m 755 busybox $1/bin/busybox
index 5f0d2d5da09dd5694e96c9caccea888affba2142..9721102a1a67c16b581f9834dfa06a24d30d60d9 100755 (executable)
@@ -6,18 +6,15 @@ if [ "$1" == "" ]; then
     echo "No installation directory, aborting."
     exit 1;
 fi
-rm -rf $1
 
 h=`sort busybox.links | uniq`
 
 for i in $h ; do
-       echo "working on $i now"
+       echo "Symlinking $i to /bin/busybox"
        mypath=`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\1/g' `;
        myapp=`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\2/g' `;
-       echo "mkdir -p $1$mypath"
-       echo "(cd $1$mypath ; ln -s /bin/busybox $1$mypath$myapp )"
        mkdir -p $1$mypath
-       (cd $1$mypath ; ln -s /bin/busybox $1$mypath$myapp )
+       (cd $1$mypath ; rm -f $1$mypath$myapp ; ln -s /bin/busybox $1$mypath$myapp )
 done
 rm -f $1/bin/busybox
 install -m 755 busybox $1/bin/busybox