wok diff wpa_supplicant/receipt @ rev 15681

Remove WEBSITE var because is empty
author Stanislas Leduc <shann@slitaz.org>
date Fri Dec 20 20:40:30 2013 +0100 (2013-12-20)
parents 7896f0694ef6
children 62082fa37457
line diff
     1.1 --- a/wpa_supplicant/receipt	Sat Aug 10 21:12:16 2013 +0000
     1.2 +++ b/wpa_supplicant/receipt	Fri Dec 20 20:40:30 2013 +0100
     1.3 @@ -66,12 +66,12 @@
     1.4  # Pre and post install commands for Tazpkg.
     1.5  post_install()
     1.6  {
     1.7 -	grep -q ^WPA_OPTIONS= $1/etc/daemons.conf || cat >> $1/etc/daemons.conf <<EOT
     1.8 +	grep -qs ^WPA_OPTIONS= $1/etc/daemons.conf || cat >> $1/etc/daemons.conf <<EOT
     1.9  # wpa_supplicant daemon options
    1.10  WPA_OPTIONS="-B -u -P /var/run/wpa_supplicant.pid -c /etc/wpa_supplicant.conf -i \$(. /etc/network.conf ; echo \$WIFI_INTERFACE)"
    1.11  
    1.12  EOT
    1.13  	# 'w' option dont exist anymore with < 0.6.9
    1.14 -	sed -i s/'-Bw'/'-B'/ $1/etc/daemons.conf
    1.15 -	sed -i s/'-B -w'/'-B'/g $1/etc/init.d/network.sh
    1.16 +	sed -i s/'-Bw'/'-B'/ $1/etc/daemons.conf 2> /dev/null
    1.17 +	sed -i s/'-B -w'/'-B'/g $1/etc/init.d/network.sh 2> /dev/null
    1.18  }