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