chroot-exec () { if [ $(mount |grep -c $BROOT_BUILDROOT_PATH/dev) -eq 0 ]; then setupBindmounts fi chroot $BROOT_BUILDROOT_PATH linux32 $@ } chroot-aptinstall () { if [ $(mount |grep -c $BROOT_BUILDROOT_PATH/dev) -eq 0 ]; then setupBindmounts fi chroot $BROOT_BUILDROOT_PATH linux32 aptitude install -y $@ }