]>
Commit | Line | Data |
---|---|---|
d1ff840a MG |
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 |