#!/bin/sh

. /usr/local/share/acpi-support/osd

cat /proc/acpi/ibm/bluetooth|grep status|grep -q enabled
if [ $? -eq 0 ]; then
#	echo "disabling bluetooth"
	echo disabled > /proc/acpi/ibm/bluetooth
	osd_print 'Bluetooth off'
else
#	echo "enabling bluetooth"
	echo enabled > /proc/acpi/ibm/bluetooth
	osd_print 'Bluetooth on'
fi
