Sync usage with man page.
[netbsd-mini2440.git] / etc / powerd / scripts / sensor_drive
blob846f971f637f572e495f18ccdfc4c040ab0f32c8
1 #!/bin/sh -
3 # $NetBSD$
5 # Generic script for drive sensors.
7 # Arguments passed by powerd(8):
9 # script_path device event sensor state_description
11 case "${2}" in
12 normal)
13 logger -p warning "${0}: normal state reached on ${1} (${3}): ${4}" >&1
14 exit 0
16 state-changed)
17 logger -p warning "${0}: state changed on ${1} (${3}): ${4}" >&1
18 exit 0
21 logger -p warning "${0}: unsupported event ${2} on device ${1}" >&1
22 exit 1
24 esac