]> git.zerfleddert.de Git - fhem-stuff/blob - CUL/20-cul.OpenWRT
back to the beginning...
[fhem-stuff] / CUL / 20-cul.OpenWRT
1 #!/bin/sh
2
3 if [ "${PRODUCT:0:8}" = "3eb/204b" ]; then
4 logger "CUL: ${ACTION} ${PRODUCT}"
5
6 case "$ACTION" in
7 add)
8 if [ "`pidof culd`" = "" ]; then
9 logger "Starting culd"
10 /usr/sbin/culd &
11 fi
12 ;;
13 remove)
14 if [ "`pidof culd`" != "" ]; then
15 logger "Stopping culd"
16 killall culd
17 killall socat
18 fi
19 ;;
20 esac
21 fi
Impressum, Datenschutz