#!/bin/sh chroots=`cat /etc/chroots.conf` ( for chroot in $chroots; do [ -e ${chroot}/.working ] && exit 0 touch ${chroot}/.working echo Chroot Build started: $(date) >> ${chroot}/build.log [ -x /root/mount_chroots ] && /root/mount_chroots -m chroot ${chroot} /usr/portage/local/bin/mergeit system -D chroot ${chroot} /usr/portage/local/bin/mergeit world -D rm ${chroot}/.working echo Chroot build finished: $(date) >> ${chroot}/build.log done ) > /dev/null 2> /dev/null &