#!/bin/bash if [ -n tmp/inchroot ];then for i in dev sys proc;do \ mount -o bind /$i $i; done; linux32 chroot . /bin/bash -c '\ touch /tmp/inchroot;\ env-update;\ source /etc/profile;\ mount /usr/portage;\ mount /usr/portage/distfiles' linux32 chroot . /bin/bash --login #else linux32 chroot . /bin/bash -c '\ umount /usr/portage/distfiles;\ umount /usr/portage' rm tmp/inchroot # logout umount proc sys dev fi