Devuan fork of gpsd
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

gpsd.hotplug.wrapper 558 B

1234567891011121314151617181920212223
  1. #! /bin/sh
  2. # $Id: gpsd.hotplug.wrapper 4669 2008-01-21 15:07:00Z esr $
  3. #debian addition:
  4. [ ! -r /etc/default/gpsd ] || . /etc/default/gpsd
  5. [ "$START_DAEMON" = "true" ] || exit 0
  6. [ "$USBAUTO" = "true" ] || exit 0
  7. if [ "$ACTION" == "remove" ] ; then
  8. if [ $(echo $DEVLINKS | grep -q /dev/gps) ] ; then
  9. exec /lib/udev/gpsd.hotplug "$ACTION" "$DEVNAME"
  10. fi
  11. exit 0
  12. fi
  13. . /lib/udev/hotplug.functions
  14. # wait for /usr & /var to be mounted
  15. wait_for_file /usr/bin/python && \
  16. wait_for_file /var/run && \
  17. exec /lib/udev/gpsd.hotplug "$ACTION" "$DEVNAME"