gpsd: moved to github
[openwrt.org/packages.git] / net / gpsd.hotplug
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
case "$ACTION" in
    add)
        # start process
        # only pl2303 devices are handled
        if [ "$PRODUCT" = "67b/2303/300" ] && [ "$TYPE" = "0/0/0" ] && [ "$INTERFACE" = "255/0/0" ]; then
            sleep 3 && /etc/init.d/gpsd start
        fi
        ;;
    remove)
        # stop process
        # only pl2303 devices are handled
        if [ "$PRODUCT" = "67b/2303/300" ] && [ "$TYPE" = "0/0/0" ] && [ "$INTERFACE" = "255/0/0" ]; then
            /etc/init.d/gpsd stop
        fi
        ;;
esac

comments