slitaz-modular view initramfs/usr/bin/setup-live @ rev 57

Add setup-live script. Its meant to help setup up livecd if you build it with slitaz-modular script.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Apr 10 17:30:09 2011 +0000 (2011-04-10)
parents
children af121a5932c3
line source
1 #!/bin/sh
3 . /etc/slitaz/slitaz.conf
5 PKG_ORDER="$(find /mnt/live/mnt/* -name "packages-order.txt" -maxdepth 1)"
7 if [ -f $PKG_ORDER ]; then
8 echo "Reconfigure packages in $PKG_ORDER"
9 for i in $(cat $PKG_ORDER); do
10 if [ ! -f $INSTALLED/$i/$i.done_post_install ]; then
11 tazpkg reconfigure $i
12 touch $INSTALLED/$i/$i.done_post_install
13 fi
14 if [ -f $INSTALLED/$i/pkgmd5 ]; then
15 [ -f $INSTALLED/$i/receipt ] && source $INSTALLED/$i/receipt
16 if [ $(cat $LOCALSTATE/installed.md5 | grep -i " ${PACKAGE}-${VERSION}${EXTRAVERSION}.tazpkg") ]; then
17 sed -i "/ $PACKAGE-$VERSION${EXTRAVERSION}.tazpkg/d" $LOCALSTATE/installed/installed.md5
18 cat $INSTALLED/$i/pkgmd5 >> $LOCALSTATE/installed.md5
19 else
20 cat $INSTALLED/$i/pkgmd5 >> $LOCALSTATE/installed.md5
21 fi
22 fi
23 done
24 fi