tazwok diff examples/tazbb @ rev 516
Revert last commit.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Mon May 09 16:01:27 2011 +0000 (2011-05-09) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/examples/tazbb Mon May 09 16:01:27 2011 +0000 1.3 @@ -0,0 +1,29 @@ 1.4 +#!/bin/sh 1.5 + 1.6 +. /etc/slitaz/slitaz.conf 1.7 + 1.8 +LOCAL_REPOSITORY="$SLITAZ_DIR/${undigest:-$SLITAZ_VERSION}" 1.9 +if [ -f $LOCAL_REPOSITORY/tazchroot.conf ]; then 1.10 + . $LOCAL_REPOSITORY/tazchroot.conf 1.11 +else 1.12 + tazwok configure-chroot 1.13 + . $LOCAL_REPOSITORY/tazchroot.conf 1.14 +fi 1.15 + 1.16 +if [ -f $LOCAL_REPOSITORY/tazwok.conf ]; then 1.17 + . $LOCAL_REPOSITORY/tazwok.conf 1.18 +else 1.19 + . /etc/slitaz/tazwok.conf 1.20 +fi 1.21 + 1.22 +[ -d $chroot_dir ] || create_chroot 1.23 + 1.24 +if [ -f $LOCAL_REPOSITORY/chroot${1} -a -x $LOCAL_REPOSITORY/chroot${1} ]; then 1.25 + mount_chroot 1.26 + chroot $LOCAL_REPOSITORY/chroot $1 1.27 + umount_chroot 1.28 +else 1.29 + echo "Make sure to use full path and file is executable in chroot" 1.30 + exit 1 1.31 +fi 1.32 +