wok-next diff connman/receipt @ rev 18838

Up gparted (0.25.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jan 21 11:45:04 2016 +0100 (2016-01-21)
parents c4fa6bacf711
children 6c12ac1293fc
line diff
     1.1 --- a/connman/receipt	Fri Feb 28 21:53:03 2014 +0100
     1.2 +++ b/connman/receipt	Thu Jan 21 11:45:04 2016 +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  }