wok diff pxe-kexec/receipt @ rev 17885

fusecloop/extract_compressed_fs: large file support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Apr 02 10:46:24 2015 +0200 (2015-04-02)
parents 280066b56ced
children 9e01bc6321ea
line diff
     1.1 --- a/pxe-kexec/receipt	Wed Apr 16 10:10:37 2014 +0000
     1.2 +++ b/pxe-kexec/receipt	Thu Apr 02 10:46:24 2015 +0200
     1.3 @@ -29,3 +29,18 @@
     1.4  	mkdir -p $fs/usr
     1.5  	cp -a $install/usr/sbin $fs/usr
     1.6  }
     1.7 +
     1.8 +# Pre and post install commands for Tazpkg.
     1.9 +post_install()
    1.10 +{
    1.11 +	grep -q kexec $1/etc/init.d/rc.shutdown &&
    1.12 +	cat >> $1/etc/init.d/rc.shutdown <<EOT
    1.13 +# pxe-kexec want kexec in shutdown script.
    1.14 +kexec -e 2>&1 > /dev/null
    1.15 +EOT
    1.16 +}
    1.17 +
    1.18 +post_remove()
    1.19 +{
    1.20 +	sed -i '/kexec/d' $1/etc/init.d/rc.shutdown
    1.21 +}