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