mirror of
https://github.com/sheumann/hush.git
synced 2024-08-26 12:29:04 +00:00
Fix bugs
This commit is contained in:
parent
0727458a97
commit
0f4c0848c7
@ -6,18 +6,15 @@ if [ "$1" == "" ]; then
|
|||||||
echo "No installation directory, aborting."
|
echo "No installation directory, aborting."
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
rm -rf $1
|
|
||||||
|
|
||||||
h=`sort busybox.links | uniq`
|
h=`sort busybox.links | uniq`
|
||||||
|
|
||||||
for i in $h ; do
|
for i in $h ; do
|
||||||
echo "working on $i now"
|
echo "Symlinking $i to /bin/busybox"
|
||||||
mypath=`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\1/g' `;
|
mypath=`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\1/g' `;
|
||||||
myapp=`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\2/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
|
mkdir -p $1$mypath
|
||||||
(cd $1$mypath ; ln -s /bin/busybox $1$mypath$myapp )
|
(cd $1$mypath ; rm -f $1$mypath$myapp ; ln -s /bin/busybox $1$mypath$myapp )
|
||||||
done
|
done
|
||||||
rm -f $1/bin/busybox
|
rm -f $1/bin/busybox
|
||||||
install -m 755 busybox $1/bin/busybox
|
install -m 755 busybox $1/bin/busybox
|
||||||
|
@ -6,18 +6,15 @@ if [ "$1" == "" ]; then
|
|||||||
echo "No installation directory, aborting."
|
echo "No installation directory, aborting."
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
rm -rf $1
|
|
||||||
|
|
||||||
h=`sort busybox.links | uniq`
|
h=`sort busybox.links | uniq`
|
||||||
|
|
||||||
for i in $h ; do
|
for i in $h ; do
|
||||||
echo "working on $i now"
|
echo "Symlinking $i to /bin/busybox"
|
||||||
mypath=`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\1/g' `;
|
mypath=`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\1/g' `;
|
||||||
myapp=`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\2/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
|
mkdir -p $1$mypath
|
||||||
(cd $1$mypath ; ln -s /bin/busybox $1$mypath$myapp )
|
(cd $1$mypath ; rm -f $1$mypath$myapp ; ln -s /bin/busybox $1$mypath$myapp )
|
||||||
done
|
done
|
||||||
rm -f $1/bin/busybox
|
rm -f $1/bin/busybox
|
||||||
install -m 755 busybox $1/bin/busybox
|
install -m 755 busybox $1/bin/busybox
|
||||||
|
Loading…
Reference in New Issue
Block a user