./busybox --install is broken.

Denis Vlasenko vda at ilport.com.ua
Thu Mar 16 00:05:21 PST 2006


On Thursday 16 March 2006 00:18, Rob Landley wrote:
> Do this:
> 
> make distclean
> make defconfig
> make
> 
> And as a normal user (not root):
> ./busybox --install 2>&1 | less

Maybe just nuke it?


test -d "$1" || exit 1
applets=`./busybox 2>&1 \
| {
while read -r line; do
    if echo "$line" \
    | grep -F "Currently defined functions:" >/dev/null 2>&1; then
        break
    fi
done
if ! test "$line"; then exit; fi
while read -r line; do echo -n "$line "; done \
| sed "s/   */ /g" | sed "s/, / /g"
}
`
for a in $applets; do
    ln -s "$PWD/busybox" "$1/$a"
done


This can be made much simpler if there is a less ugly way to
produce list of applets:


test -d "$1" || exit 1
./busybox --applet-list | while read $a; do
    ln -s "$PWD/busybox" "$1/$a" 
done
--
vda


More information about the busybox mailing list