]> git.zerfleddert.de Git - hmcfgusb/blob - 20-hmlan.OpenWRT
hmcfgusb: add possibility to use a specific HM-CFG-USB with -S
[hmcfgusb] / 20-hmlan.OpenWRT
1 #!/bin/sh
2
3 if [ "${PRODUCT:0:9}" = "1b1f/c00f" -o "${PRODUCT:0:9}" = "1b1f/c010" ]; then
4 logger "HMLAN: ${ACTION} ${PRODUCT}"
5
6 case "$ACTION" in
7 add)
8 if [ "`pidof hmland`" = "" ]; then
9 logger "Starting hmland"
10 hmland -d
11 fi
12 ;;
13 remove)
14 if [ "`pidof hmland`" != "" ]; then
15 logger "Stopping hmland"
16 killall hmland
17 fi
18 ;;
19 esac
20 fi
Impressum, Datenschutz