tazwok view examples/tazbb @ rev 558
Remove ashism ==
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 26 08:31:13 2019 +0100 (2019-02-26) |
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