wok-next diff acpid/receipt @ rev 18741
Finish to remove redundant messages 'Processing * commands...'; KISS get-msttcorefonts; add get-msttcorefonts2
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Dec 25 15:23:46 2015 +0200 (2015-12-25) |
parents | 408c87fa22ca |
children | 7b00a1691d2e |
line diff
1.1 --- a/acpid/receipt Sat Aug 10 17:48:05 2013 +0000 1.2 +++ b/acpid/receipt Fri Dec 25 15:23:46 2015 +0200 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