slitaz-modular rev 95
Added tazbb replacement script for crond. This will automate the build bot.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun May 08 17:28:23 2011 +0000 (2011-05-08) |
parents | 0b8a81b6d4f4 |
children | 8b4268fe8048 |
files | initramfs/usr/bin/tazbb |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/initramfs/usr/bin/tazbb Sun May 08 17:28:23 2011 +0000 1.3 @@ -0,0 +1,29 @@ 1.4 +#!/bin/sh 1.5 + 1.6 +LOCAL_REPOSITORY="$SLITAZ_DIR/${undigest:-$SLITAZ_VERSION}" 1.7 +if [ -f $LOCAL_REPOSITORY/tazchroot.conf ]; then 1.8 + . $LOCAL_REPOSITORY/tazchroot.conf 1.9 +else 1.10 + tazwok configure-chroot 1.11 + . $LOCAL_REPOSITORY/tazchroot.conf 1.12 +fi 1.13 + 1.14 +if [ -f $LOCAL_REPOSITORY/slitaz.conf ]; then 1.15 + . $LOCAL_REPOSITORY/slitaz.conf 1.16 +else 1.17 + . /etc/slitaz/slitaz.conf 1.18 +fi 1.19 + 1.20 +if [ -f $LOCAL_REPOSITORY/tazwok.conf ]; then 1.21 + . $LOCAL_REPOSITORY/tazwok.conf 1.22 +else 1.23 + . /etc/slitaz/tazwok.conf 1.24 +fi 1.25 + 1.26 +[ -d $chroot_dir ] || create_chroot 1.27 + 1.28 +mount_chroot 1.29 +chroot $LOCAL_REPOSITORY/chroot /usr/bin/tank-bot 1.30 +#chroot $LOCAL_REPOSITORY/chroot tazwok cook bash 1.31 +umount_chroot 1.32 +