tazwok rev 190
Add: configure-chroot function I forgot
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Sat Jan 22 16:31:44 2011 +0100 (2011-01-22) |
parents | e144eb398c3a |
children | 48614e9bb2f9 |
files | tazwok |
line diff
1.1 --- a/tazwok Tue Jan 18 15:08:20 2011 +0100 1.2 +++ b/tazwok Sat Jan 22 16:31:44 2011 +0100 1.3 @@ -1890,7 +1890,7 @@ 1.4 1.5 configure_tazchroot() 1.6 { 1.7 - cat >> $LOCAL_REPOSITORY/tazchroot.conf << EOF 1.8 + cat > $LOCAL_REPOSITORY/tazchroot.conf << EOF 1.9 # Tazchroot configuration file - created by tazwok. 1.10 1.11 # Default chroot path 1.12 @@ -2760,6 +2760,17 @@ 1.13 mkdir $tmp 1.14 remove_old_packages 1.15 ;; 1.16 + configure-chroot) 1.17 + check_root 1.18 + get_tazwok_config 1.19 + if [ -f /usr/bin/tazchroot ]; then 1.20 + cd $LOCAL_REPOSITORY 1.21 + configure_tazchroot 1.22 + else 1.23 + echo "The packages tazchroot need to be installed" >&2 1.24 + exit 1 1.25 + fi 1.26 + ;; 1.27 chroot) 1.28 check_root 1.29 get_tazwok_config