xbps-src:chroot.sh: update for busybox rename.

This commit is contained in:
Juan RP 2011-02-11 16:29:02 +01:00
parent faff8849e0
commit 0dd337ee91

View file

@ -181,7 +181,6 @@ prepare_binpkg_repos()
create_busybox_links()
{
local busyboxdir=$XBPS_MASTERDIR/usr/lib/busybox-initramfs
local lbindir=$XBPS_MASTERDIR/usr/local/bin
[ -f $XBPS_MASTERDIR/.busybox_done ] && return 0
@ -189,10 +188,11 @@ create_busybox_links()
[ ! -d ${lbindir} ] && mkdir -p ${lbindir}
# Create other symlinks in /usr/local/bin
for f in $(find ${busyboxdir} -type l); do
cd ${lbindir} || return 1
[ "$(basename $f)" = "sh" ] && continue
ln -s ../../lib/busybox-initramfs/bin/busybox $(basename $f)
cd ${lbindir} || return 1
for f in $(${XBPS_MASTERDIR}/bin/busybox --list); do
[ "$f" = "sh" ] && continue
ln -s ../../../bin/busybox $f
done
touch -f $XBPS_MASTERDIR/.busybox_done