projects
/
oweals
/
busybox.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
DocBook documentation update from Matt Kraai <kraai@alumni.carnegiemellon.edu>
[oweals/busybox.git]
/
install.sh
1
#!/bin/sh
2
3
set -e
4
5
if [ "$1" = "" ]; then
6
echo "No installation directory, aborting."
7
exit 1;
8
fi
9
10
h=`sort busybox.links | uniq`
11
12
for i in $h ; do
13
echo " $1$i -> /bin/busybox"
14
mkdir -p $1/`echo $i | sed -e 's/\/[^\/]*$//' `
15
ln -fs /bin/busybox $1$i
16
done
17
rm -f $1/bin/busybox
18
mkdir -p $1/bin
19
install -m 755 busybox $1/bin/busybox
20
21
exit 0