diff --git a/gpsd.changes b/gpsd.changes index d3f2675..966b6af 100644 --- a/gpsd.changes +++ b/gpsd.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Nov 19 12:14:42 CET 2008 - jreuter@suse.de + +- Sleep a second before setting the default device in udev + script to give gpsd some time to set up the TCP socket + ------------------------------------------------------------------- Thu Oct 23 15:06:28 CEST 2008 - jreuter@suse.de diff --git a/gpsd.spec b/gpsd.spec index fdd77da..8627f18 100644 --- a/gpsd.spec +++ b/gpsd.spec @@ -24,7 +24,7 @@ License: BSD 3-Clause Url: http://gpsd.berlios.de/ Group: Hardware/Other Version: 2.37 -Release: 68 +Release: 69 Requires: udev PreReq: coreutils %fillup_prereq BuildRequires: gcc-c++ ncurses-devel openmotif openmotif-devel python-devel udev update-desktop-files xmlto @@ -243,6 +243,9 @@ rm -rf %{buildroot} %{_datadir}/pixmaps/*.xpm %changelog +* Wed Nov 19 2008 jreuter@suse.de +- Sleep a second before setting the default device in udev + script to give gpsd some time to set up the TCP socket * Thu Oct 23 2008 jreuter@suse.de - Disable start of gpsd by udev rule by default and add sysconfig variable to enable it if desired (bnc#432420) diff --git a/udev.gpsd b/udev.gpsd index 5348ec3..e14aca1 100644 --- a/udev.gpsd +++ b/udev.gpsd @@ -7,7 +7,7 @@ if [ "${ACTION}" = "remove" ]; then GPSD_PID=$(pidof gpsd) if [ -z "$GPSD_PID" ]; then - echo "Can't find GPSD!" + echo "Can't find gpsd!" else echo "Remove gpsd from pid: ${GPSD_PID}" TTYDEV="/dev/$(basename $DEVPATH)" @@ -40,11 +40,11 @@ case "$DEVPATH" in PORT=2947 fi - echo "Action '${ACTION}' Launch GPSD to $TTYDEV with $options" + echo "Action '${ACTION}' Launch gpsd to $TTYDEV with $options" /usr/sbin/gpsd $options ${TTYDEV} - echo "${TTYDEV}" > ${DEV_NAME} + sleep 1 echo "F=$TTYDEV" >/dev/tcp/localhost/$PORT ;; esac