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

« back to all changes in this revision

Viewing changes to tools/linux/hal-system-killswitch-get-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:
47
47
            echo "org.freedesktop.Hal.Device.KillSwitch.NotSupported" >&2
48
48
            echo "dellWirelessCtl returned $value" >&2
49
49
        fi
 
50
    elif [ "$HAL_PROP_KILLSWITCH_ACCESS_METHOD" = "ipw" ]; then
 
51
        hal-ipw-killswitch-linux getrfkill
 
52
        value=$?
 
53
        if [ "$value" = "0" ]; then
 
54
            exit 1
 
55
        elif [ "$value" = "1" ]; then
 
56
            exit 0
 
57
        else
 
58
            echo "org.freedesktop.Hal.Device.KillSwitch.NotSupported" >&2
 
59
            echo "hal-ipw-killswitch-linux returned $value" >&2
 
60
        fi
50
61
    else
51
62
        echo "org.freedesktop.Hal.Device.KillSwitch.NotSupported" >&2
52
63
        echo "Access type not supported" >&2