https://www.thinkwiki.org/w/index.php?title=Script_for_toggling_bluetooth&feed=atom&action=historyScript for toggling bluetooth - Revision history2024-03-29T01:59:44ZRevision history for this page on the wikiMediaWiki 1.31.12https://www.thinkwiki.org/w/index.php?title=Script_for_toggling_bluetooth&diff=29623&oldid=prevMrunge: First version, ideas2007-05-07T12:26:47Z<p>First version, ideas</p>
<p><b>New page</b></p><div>The following code snipped may be useful to enable/disable bluetooth functionality on a thinkpad.<br />
<br />
#!/bin/bash<br />
INFO=/proc/acpi/ibm/bluetooth<br />
STATE=`cat $INFO | grep status| awk '{print $2}'`<br />
case "$STATE" in<br />
enabled)<br />
echo -n "disable" > $INFO<br />
;;<br />
disabled)<br />
echo "enable" -n > $INFO<br />
;;<br />
*)<br />
echo "usage: disable, enable"<br />
esac<br />
<br />
=== Further extensions ===<br />
Using Windows the Fn-F5 buttons allows to switch on/off WLAN and bluetooth also. In the future the following features will be added <br />
* include WLAN in switching<br />
* show status on screen<br />
[[Category:Scripts]]<br />
[[Category:Bluetooth]]</div>Mrunge