wok diff slitaz-boot-scripts/receipt @ rev 1080

Up: slitaz-base-files (2.3)
author Christophe Lincoln <pankso@slitaz.org>
date Wed Jul 16 16:28:13 2008 +0200 (2008-07-16)
parents 6602df876b72
children f2e79943794d
line diff
     1.1 --- a/slitaz-boot-scripts/receipt	Tue Jun 24 20:40:11 2008 +0200
     1.2 +++ b/slitaz-boot-scripts/receipt	Wed Jul 16 16:28:13 2008 +0200
     1.3 @@ -46,6 +46,11 @@
     1.4  {
     1.5   	local root
     1.6   	root=$1
     1.7 +	( cd ./$1 ; cpio -o -H newc | gzip -9 ) > \
     1.8 +		$1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT
     1.9 +etc/rcS.conf
    1.10 +etc/network.conf
    1.11 +EOT
    1.12  	echo "Restoring configs backups..."
    1.13  	mv -f $root/etc/rcS.conf.bak $root/etc/rcS.conf 2>/dev/null
    1.14  	mv -f $root/etc/network.conf.bak $root/etc/network.conf 2>/dev/null
    1.15 @@ -77,3 +82,7 @@
    1.16  	fi 
    1.17  }
    1.18  
    1.19 +repack_cleanup()
    1.20 +{
    1.21 +	zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id )
    1.22 +}