~ubuntu-branches/debian/sid/hal/sid

« back to all changes in this revision

Viewing changes to tools/linux/hal-system-killswitch-set-power-linux

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2007-10-23 12:33:58 UTC
  • Revision ID: james.westby@ubuntu.com-20071023123358-xaf8mjc5n84d5gtz
Tags: upstream-0.5.10
ImportĀ upstreamĀ versionĀ 0.5.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
            echo "org.freedesktop.Hal.Device.KillSwitch.NotSupported" >&2
55
55
            echo "dellWirelessCtl returned $ret" >&2
56
56
        fi
 
57
    elif [ "$HAL_PROP_KILLSWITCH_ACCESS_METHOD" = "ipw" ]; then
 
58
        if [ "$value" = "true" ]; then
 
59
                rf_value=0
 
60
        elif [ "$value" = "false" ]; then
 
61
                rf_value=1
 
62
        fi
 
63
        hal-ipw-killswitch-linux setrfkill $rf_value
 
64
        ret=$?
 
65
        if [ "$ret" != "0" ]; then 
 
66
                echo "org.freedesktop.Hal.Device.KillSwitch.NotSupported" >&2
 
67
                echo "hal-ipw-killswitch-linux returned $value" >&2
 
68
        fi
57
69
    else
58
70
        echo "org.freedesktop.Hal.Device.KillSwitch.NotSupported" >&2
59
71
        echo "Access type not supported" >&2