Wednesday 3 March 2010

Switch bluetooth led

#!/usr/bin/sudo /bin/sh
# switch bluetooth
#
status=`cat /proc/acpi/ibm/bluetooth | head -n 1 | cut -f 3`
if [ $status = "disabled" ]; then
    status=enable;
else
    status=disable
fi
echo $status > /proc/acpi/ibm/bluetooth

No comments: