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 <[EMAIL PROTECTED]>

Los mejores gatos están cocidos.- Alf.

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Debian-eeepc-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/debian-eeepc-devel

Reply via email to