Correct PPTP server firewall rules chain.
[tomato/davidwu.git] / release / src / router / mdadm / misc / syslog-events
blobfe8c14e4d5c967630746204ece4e7fc1079e4ae5
1 #!/bin/sh
3 # sample event handling script for mdadm
4 # e.g. mdadm --follow --program=/sbin/syslog-events --scan
6 # License: GPL ver.2
7 # Copyright (C) 2004 SEKINE Tatsuo <tsekine@sdri.co.jp>
9 event="$1"
10 dev="$2"
11 disc="$3"
13 facility="kern"
14 tag="mdmonitor"
16 case x"${event}" in
17 xFail*) priority="error" ;;
18 xTest*) priority="debug" ;;
19 x*) priority="info" ;;
20 esac
22 msg="${event} event on ${dev}"
23 if [ x"${disc}" != x ]; then
24 msg="${msg}, related to disc ${disc}"
27 exec logger -t "${tag}" -p "${facility}.${priority}" -- "${msg}"