tazwok view examples/tazbb @ rev 534

Added tag 4.2.16 for changeset a771874e05d6
author Christopher Rogers <slaxemulator@gmail.com>
date Mon May 23 20:47:03 2011 +0000 (2011-05-23)
parents
children
line source
1 #!/bin/sh
3 . /etc/slitaz/slitaz.conf
5 LOCAL_REPOSITORY="$SLITAZ_DIR/${undigest:-$SLITAZ_VERSION}"
6 if [ -f $LOCAL_REPOSITORY/tazchroot.conf ]; then
7 . $LOCAL_REPOSITORY/tazchroot.conf
8 else
9 tazwok configure-chroot
10 . $LOCAL_REPOSITORY/tazchroot.conf
11 fi
13 if [ -f $LOCAL_REPOSITORY/tazwok.conf ]; then
14 . $LOCAL_REPOSITORY/tazwok.conf
15 else
16 . /etc/slitaz/tazwok.conf
17 fi
19 [ -d $chroot_dir ] || create_chroot
21 if [ -f $LOCAL_REPOSITORY/chroot${1} -a -x $LOCAL_REPOSITORY/chroot${1} ]; then
22 mount_chroot
23 chroot $LOCAL_REPOSITORY/chroot $1
24 umount_chroot
25 else
26 echo "Make sure to use full path and file is executable in chroot"
27 exit 1
28 fi