1#!/bin/sh - 2# 3# $NetBSD: sensor_drive,v 1.1 2007/07/01 07:55:53 xtraeme Exp $ 4# 5# Generic script for drive sensors. 6# 7# Arguments passed by powerd(8): 8# 9# script_path device event sensor state_description 10 11case "${2}" in 12normal) 13 logger -p warning "${0}: normal state reached on ${1} (${3}): ${4}" >&1 14 exit 0 15 ;; 16state-changed) 17 logger -p warning "${0}: state changed on ${1} (${3}): ${4}" >&1 18 exit 0 19 ;; 20*) 21 logger -p warning "${0}: unsupported event ${2} on device ${1}" >&1 22 exit 1 23 ;; 24esac 25