wok-current diff wicd/receipt @ rev 20194

Up autofs (5.1.4), btrfs-progs (4.15), cifs-utils (6.7), davfs2 (1.5.4), dosfstools (4.1), e2fsprogs (1.43.9), f2fs-tools (1.10.0), moosefs (3.0.100), milfs-utils (2.2.7), owfs (3.2p1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 12 13:54:33 2018 +0100 (2018-02-12)
parents 7390f8de9846
children 3105f866bc3e
line diff
     1.1 --- a/wicd/receipt	Sat May 23 16:17:14 2015 +0300
     1.2 +++ b/wicd/receipt	Mon Feb 12 13:54:33 2018 +0100
     1.3 @@ -56,11 +56,9 @@
     1.4  # edit daemons.conf.
     1.5  post_install()
     1.6  {
     1.7 -	local root
     1.8 -	root=$1
     1.9 -	if ! grep -q ^WICD_OPTIONS $root/etc/daemons.conf; then
    1.10 -		echo '# wicd options.' >> $root/etc/daemons.conf
    1.11 -		echo 'WICD_OPTIONS=""' >> $root/etc/daemons.conf
    1.12 -		echo '' >> $root/etc/daemons.conf
    1.13 +	if ! grep -q ^WICD_OPTIONS "$1/etc/daemons.conf"; then
    1.14 +		echo '# wicd options.' >> "$1/etc/daemons.conf"
    1.15 +		echo 'WICD_OPTIONS=""' >> "$1/etc/daemons.conf"
    1.16 +		echo '' >> "$1/etc/daemons.conf"
    1.17  	fi
    1.18  }