wok-next diff pm-utils/receipt @ rev 20308

libt4k_common: add libpng patch
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Nov 10 15:39:54 2017 +0100 (2017-11-10)
parents 54a5f5c453da
children 757d032c55c7
line diff
     1.1 --- a/pm-utils/receipt	Mon Jan 19 00:23:49 2015 +0100
     1.2 +++ b/pm-utils/receipt	Fri Nov 10 15:39:54 2017 +0100
     1.3 @@ -67,13 +67,13 @@
     1.4  
     1.5  pre_remove()
     1.6  {
     1.7 -	[ -s $1/etc/slim.conf ] &&
     1.8 -	sed -i 's|.*/usr/sbin/pm-suspend|#&|' $1/etc/slim.conf
     1.9 +	[ -s "$1/etc/slim.conf" ] &&
    1.10 +	sed -i 's|.*/usr/sbin/pm-suspend|#&|' "$1/etc/slim.conf"
    1.11  }
    1.12  
    1.13  post_install()
    1.14  {
    1.15 -	[ -s $1/etc/slim.conf ] &&
    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 +		"$1/etc/slim.conf"
    1.20  }