wok diff pm-utils/receipt @ rev 17543

Up busybox (1.23.1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jan 27 16:55:03 2015 +0100 (2015-01-27)
parents 51a1ebbda768
children 9e01bc6321ea
line diff
     1.1 --- a/pm-utils/receipt	Fri Oct 18 19:43:55 2013 +0000
     1.2 +++ b/pm-utils/receipt	Tue Jan 27 16:55:03 2015 +0100
     1.3 @@ -64,3 +64,16 @@
     1.4  	cp -a $stuff/video-quirks $fs/usr/lib/pm-utils
     1.5  	status
     1.6  }
     1.7 +
     1.8 +pre_remove()
     1.9 +{
    1.10 +	[ -s $1/etc/slim.conf ] &&
    1.11 +	sed -i 's|.*/usr/sbin/pm-suspend|#&|' $1/etc/slim.conf
    1.12 +}
    1.13 +
    1.14 +post_install()
    1.15 +{
    1.16 +	[ -s $1/etc/slim.conf ] &&
    1.17 +	sed -i 's|^#suspend_cmd.*|suspend_cmd         /usr/sbin/pm-suspend|' \
    1.18 +		$1/etc/slim.conf
    1.19 +}