Kubuntu 6.04 (Dapper) Fn-F5 Patch

Submitted by xwings
on January 9, 2006 - 12:28pm

O/S : Linux
Distro : kubuntu
Title : Kubuntu 6.10 (Dapper) Fn-F5 Patch

root@pauillac:~ # cat /etc/acpi/ibm-wireless.sh
#!/bin/bash
# Find and enable/disable wireless devices

#state=`. /etc/acpi/wireless.sh`
state=`. /etc/acpi/ibm-radio.sh`

if [ "$state" = "0" ]; then
    if [ -f /proc/acpi/ibm/bluetooth ]; then
        echo disable >/proc/acpi/ibm/bluetooth;
    fi
else
    if [ -f /proc/acpi/ibm/bluetooth ]; then
        echo enable >/proc/acpi/ibm/bluetooth;
    fi
fi
root@pauillac:~ # cat /etc/acpi/ibm-radio.sh
#!/bin/bash

rf_kill=`echo /sys/bus/pci/drivers/ipw2200/*/rf_kill`

status=`cat $rf_kill`

if [ "$status" == "0" ]; then
        /bin/echo 1 >$rf_kill
else
        /bin/echo 0 >$rf_kill
fi
root@pauillac:~ #

Fn-F5 Patch

on
January 16, 2006 - 4:31am

thanks for your hint, it helps.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.