wok diff connman/receipt @ rev 19683
Add: mate (a package to install all MATE desktop at once)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Feb 12 00:43:16 2017 +0100 (2017-02-12) |
parents | c4fa6bacf711 |
children | 0e3538a79c6b |
line diff
1.1 --- a/connman/receipt Fri Feb 28 21:53:03 2014 +0100 1.2 +++ b/connman/receipt Sun Feb 12 00:43:16 2017 +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 }