wok-6.x diff connman/receipt @ rev 19992
Up busybox (1.27.1) again
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jul 21 17:41:29 2017 +0200 (2017-07-21) |
parents | c4fa6bacf711 |
children | 0e3538a79c6b |
line diff
1.1 --- a/connman/receipt Fri Feb 28 21:53:03 2014 +0100 1.2 +++ b/connman/receipt Fri Jul 21 17:41:29 2017 +0200 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 }