1999-11-12 13:33:23 +05:30
|
|
|
#!/bin/sh
|
|
|
|
|
1999-11-15 23:03:30 +05:30
|
|
|
set -e
|
|
|
|
|
1999-11-12 13:33:23 +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-11-19 11:01:45 +05:30
|
|
|
mypath=`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\1/g' `;
|
|
|
|
myapp=`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\2/g' `;
|
1999-11-22 11:31:01 +05:30
|
|
|
echo " $1$mypath$myapp -> /bin/busybox"
|
1999-11-22 13:11:00 +05:30
|
|
|
mkdir -p $1$mypath
|
|
|
|
(cd $1$mypath && rm -f $1$mypath$myapp && ln -s /bin/busybox $1$mypath$myapp )
|
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
|