busybox/applets/install.sh

21 lines
332 B
Bash
Raw Normal View History

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