#!/bin/bash # Find and enable/disable wireless devices wlstate=`. /etc/acpi/wireless.sh` if [ -f /proc/acpi/ibm/bluetooth ]; then grep -q disabled /proc/acpi/ibm/bluetooth btstate=$? fi if [ "$wlstate" = "0" ]; then if [ -f /proc/acpi/ibm/bluetooth ]; then if [ "$btstate" = "0" ]; then echo enable >/proc/acpi/ibm/bluetooth; else echo disable >/proc/acpi/ibm/bluetooth; fi fi fi