wok diff connman/receipt @ rev 20497

updated diffutils (3.3 -> 3.6)
author Hans-G?nter Theisgen
date Mon Oct 29 16:27:52 2018 +0100 (2018-10-29)
parents c4fa6bacf711
children 0e3538a79c6b
line diff
     1.1 --- a/connman/receipt	Fri Feb 28 21:53:03 2014 +0100
     1.2 +++ b/connman/receipt	Mon Oct 29 16:27:52 2018 +0100
     1.3 @@ -66,13 +66,12 @@
     1.4  # Pre and post remove commands for Tazpkg
     1.5  post_install()
     1.6  {
     1.7 -	local root=$1
     1.8 -	if ! grep -qs ^CONNMAND_OPTIONS $root/etc/daemons.conf; then
     1.9 -		echo '# Connman daemon options.' >> $root/etc/daemons.conf
    1.10 -		echo 'CONNMAND_OPTIONS=""' >> $root/etc/daemons.conf
    1.11 -		echo '' >> $root/etc/daemons.conf
    1.12 +	if ! grep -qs ^CONNMAND_OPTIONS "$1/etc/daemons.conf"; then
    1.13 +		echo '# Connman daemon options.' >> "$1/etc/daemons.conf"
    1.14 +		echo 'CONNMAND_OPTIONS=""' >> "$1/etc/daemons.conf"
    1.15 +		echo '' >> "$1/etc/daemons.conf"
    1.16  	fi
    1.17 -	if [ -z "$root" -a -s /etc/network.conf ]; then
    1.18 +	if [ -z "$1" -a -s /etc/network.conf ]; then
    1.19  		/etc/init.d/connman start || /etc/init.d/connman restart
    1.20  	fi
    1.21  }