wok diff acpid/receipt @ rev 18941

Up transmission (2.90)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 02 16:55:03 2016 +0100 (2016-03-02)
parents 408c87fa22ca
children 7b00a1691d2e
line diff
     1.1 --- a/acpid/receipt	Sat Aug 10 17:48:05 2013 +0000
     1.2 +++ b/acpid/receipt	Wed Mar 02 16:55:03 2016 +0100
     1.3 @@ -42,15 +42,13 @@
     1.4  # Pre and post remove commands for Tazpkg
     1.5  post_install()
     1.6  {
     1.7 -	local root
     1.8 -	root=$1
     1.9 -	if [ -z "$root" ]; then
    1.10 +	if [ -z "$1" ]; then
    1.11  		/etc/init.d/acpid start || continue
    1.12  	fi
    1.13 -	if ! grep -q ^ACPID_OPTIONS $root/etc/daemons.conf; then
    1.14 -		echo '# ACPI daemon options.' >> $root/etc/daemons.conf
    1.15 -		echo 'ACPID_OPTIONS=""' >> $root/etc/daemons.conf
    1.16 -		echo '' >> $root/etc/daemons.conf
    1.17 +	if ! grep -q ^ACPID_OPTIONS "$1/etc/daemons.conf"; then
    1.18 +		echo '# ACPI daemon options.' >> "$1/etc/daemons.conf"
    1.19 +		echo 'ACPID_OPTIONS=""' >> "$1/etc/daemons.conf"
    1.20 +		echo '' >> "$1/etc/daemons.conf"
    1.21  	fi
    1.22  }	
    1.23