hush/install.sh

22 lines
348 B
Bash
Raw Normal View History

1999-11-12 08:03:23 +00:00
#!/bin/sh
1999-11-15 17:33:30 +00:00
set -e
2000-02-11 21:55:04 +00:00
if [ "$1" = "" ]; then
1999-11-15 17:33:30 +00:00
echo "No installation directory, aborting."
1999-11-12 08:03:23 +00:00
exit 1;
fi
1999-11-15 17:33:30 +00:00
h=`sort busybox.links | uniq`
1999-11-12 08:03:23 +00:00
for i in $h ; do
1999-12-03 09:19:54 +00:00
echo " $1$i -> /bin/busybox"
mkdir -p $1/`echo $i | sed -e 's/\/[^\/]*$//' `
1999-12-07 08:37:31 +00:00
ln -fs /bin/busybox $1$i
1999-11-12 08:03:23 +00:00
done
rm -f $1/bin/busybox
2000-04-18 23:32:10 +00:00
mkdir -p $1/bin
1999-11-12 08:03:23 +00:00
install -m 755 busybox $1/bin/busybox
1999-11-22 07:41:00 +00:00
exit 0