slitaz-modular rev 63
Up: Fixed setup-live script only reconfigure packages that have post_install function in receipts.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue Apr 12 17:59:26 2011 +0000 (2011-04-12) |
parents | b4cd8833c2dd |
children | 33965d6fb879 |
files | initramfs/usr/bin/setup-live |
line diff
1.1 --- a/initramfs/usr/bin/setup-live Tue Apr 12 17:31:51 2011 +0000 1.2 +++ b/initramfs/usr/bin/setup-live Tue Apr 12 17:59:26 2011 +0000 1.3 @@ -8,8 +8,12 @@ 1.4 echo "Reconfigure packages in $PKG_ORDER" 1.5 for i in $(cat $PKG_ORDER); do 1.6 if [ ! -f $INSTALLED/$i/$i.done_post_install ]; then 1.7 - tazpkg reconfigure $i 1.8 - touch $INSTALLED/$i/$i.done_post_install 1.9 + if [ -f $INSTALLED/$i/receipt ]; then 1.10 + if [ $(grep -l '^post_install' $INSTALLED/$i/receipt) ]; then 1.11 + tazpkg reconfigure $i 1.12 + touch $INSTALLED/$i/$i.done_post_install 1.13 + fi 1.14 + fi 1.15 fi 1.16 if [ -f $INSTALLED/$i/pkgmd5 ]; then 1.17 [ -f $INSTALLED/$i/receipt ] && source $INSTALLED/$i/receipt