summaryrefslogtreecommitdiff
path: root/applets/install.sh
diff options
context:
space:
mode:
authorEric Andersen1999-11-19 05:31:45 +0000
committerEric Andersen1999-11-19 05:31:45 +0000
commit6a76e652aab7d614c2b47b50318e0690c06779c4 (patch)
treeeb5564c774b9ef03dc095e7c06e8adb2a8ede1c8 /applets/install.sh
parent08b1034f4f0b910660a8b1a537f86462fa41ebad (diff)
downloadbusybox-6a76e652aab7d614c2b47b50318e0690c06779c4.zip
busybox-6a76e652aab7d614c2b47b50318e0690c06779c4.tar.gz
Stuf
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 29c9e26..5f0d2d5 100755
--- a/applets/install.sh
+++ b/applets/install.sh
@@ -6,17 +6,20 @@ if [ "$1" == "" ]; then
echo "No installation directory, aborting."
exit 1;
fi
+rm -rf $1
-# can't just use cat, rmdir is not unique
-#h=`cat busybox.links`
h=`sort busybox.links | uniq`
-mkdir -p $1/bin
for i in $h ; do
- [ ${verbose} ] && echo " making link to $i"
- mkdir -p $1/`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\1/g' `
- ln -s busybox $1/bin/`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\2/g' `
+ echo "working on $i now"
+ 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 )
done
rm -f $1/bin/busybox
install -m 755 busybox $1/bin/busybox
+