JunJie's blog
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:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment