gpsd/gpsd.hotplug.wrapper
Douglas E. Warner 532b77d09c - updating to 2.38
- creating init script and sysconfig files
- migrating hotplug rules to udev + hotplug wrapper script from svn r5147
- updating pyexecdir patch
- fixing udev rule subsystem match
- Regression test load for RoyalTek RGM3800 and Blumax GPS-009 added
- Scaling on E error-estimate fields fixed to match O
- Listen on localhost only by default to avoid security problems; this can
    be overridden with the -G command-line option
- The packet-state machine can now recognize RTCM3 packets, though support
    is not yet complete
- Added support for ublox5 and mkt-3301 devices
- Add a wrapper around gpsd_hexdump to save CPU
- Lots of little fixes to various packet parsers
- Always keep the device open: "-n" is not optional any more
- xgpsspeed no longer depends on Motif
- gpsctl can now ship arbitrary payloads to a device; It's possible to send
    binary through the control channel with the new "&" command
- Experimental new driver for Novatel SuperStarII
- The 'g' mode switch command now requires, and returns, 'rtcm104v2' rather
    than 'rtcm104'; this is design forward for when RTCM104v2 is fully
    working
2009-03-16 13:54:41 +00:00

29 lines
608 B
Bash

#! /bin/bash
# $Id$
if [ "$ACTION" == "remove" ] ; then
if [ $(echo $DEVLINKS | grep -q /dev/gps) ] ; then
exec /lib/udev/gpsd.hotplug "$ACTION" "$DEVNAME"
fi
exit 0
fi
# This was formerly in /lib/udev/hotplug.functions
wait_for_file() {
[ -e "$1" ] && return 0
local count=0
while sleep 1; do
let count=count+1
[ -e "$1" ] && return 0
if [ $count -gt 60 ]; then
return 1
fi
done
}
# wait for /usr & /var to be mounted
wait_for_file /usr/bin/python && \
wait_for_file /var/run && \
exec /lib/udev/gpsd.hotplug "$ACTION" "$DEVNAME"