[Debian-eeepc-devel] [SCM] Maintenance of eeepc-acpi-scripts debian package branch, master, updated. db56a3bc8a47819398ae7ae768722932aa9aea75

Iván Sánchez Ortega ivan at sanchezortega.es
Sun Aug 31 12:43:56 UTC 2008


El Domingo, 31 de Agosto de 2008, Damyan Ivanov escribió:
> +bluetooth_is_on()
> +{
> +    if [ -e $BT_CTL ]; then
> +        [ $( cat $BT_CTL ) = "1" ]
> +    else
> +        hcitool dev | grep -q hci0
> +    fi
> +}

This will return "bluetooth on" for models which do not have a bluetooth 
adaptor soldered to the board (e.g. 900). I suggest doing "hcitool -dev | 
grep hci0", which really tests if a bluetooth adaptor is present, IIRC.


Cheers,
-- 
----------------------------------
Iván Sánchez Ortega <ivan at sanchezortega.es>

Los mejores gatos están cocidos.- Alf.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.alioth.debian.org/pipermail/debian-eeepc-devel/attachments/20080831/a0dca69a/attachment.pgp 


More information about the Debian-eeepc-devel mailing list