hush/applets/install.sh

22 lines
344 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
1999-11-12 08:03:23 +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/\/[^\/]*$//' `
rm -f $1$i
ln -s /bin/busybox $1$i
1999-11-12 08:03:23 +00:00
done
rm -f $1/bin/busybox
install -m 755 busybox $1/bin/busybox
1999-11-22 07:41:00 +00:00
exit 0