diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2016-05-10 22:30:45 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2016-05-10 22:30:45 -0400 |
commit | b8ccd67ca2213b421a2ef3acd6d759e79ef993d1 (patch) | |
tree | 6d515f9a339c7a2b61f61395df829b777bca9eed /gpsmon.c | |
parent | cd03726356114acf3a03c103bd790d4132d8d690 (diff) | |
download | gpsd-b8ccd67ca2213b421a2ef3acd6d759e79ef993d1.tar.gz |
Im[p;ement and document /dev/gpsd0 side effect.
Diffstat (limited to 'gpsmon.c')
-rw-r--r-- | gpsmon.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1302,7 +1302,8 @@ int main(int argc, char **argv) * there is a static /dev/pps0, and we have access because * we're root, assume we want to use KPPS. */ - if (strcmp(session.pps_thread.devicename, MAGIC_HAT_GPS) == 0 + if ((strcmp(session.pps_thread.devicename, MAGIC_HAT_GPS) == 0 + || strcmp(session.pps_thread.devicename, MAGIC_LINK_GPS) == 0) && access("/dev/pps0", R_OK | W_OK) == 0) session.pps_thread.devicename = "/dev/pps0"; pps_thread_activate(&session.pps_thread); |