wok-next diff pxe-kexec/receipt @ rev 18104
Up zsh (5.0.7)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jun 01 11:13:52 2015 +0200 (2015-06-01) |
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 Mon Jun 01 11:13:52 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 +}