wok-current diff connman/receipt @ rev 19579

unetbootin: slitaz support (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Dec 24 14:13:20 2016 +0100 (2016-12-24)
parents c4fa6bacf711
children 0e3538a79c6b
line diff
     1.1 --- a/connman/receipt	Fri Feb 28 21:53:03 2014 +0100
     1.2 +++ b/connman/receipt	Sat Dec 24 14:13:20 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  }