aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Angelacos <nangel@alpinelinux.org>2012-11-04 03:20:10 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-11-04 15:34:37 +0000
commit4dbb6142d3e39ab740d6caa7a2b2e44f2c09790c (patch)
tree6e7aaaf18c756a69a16992a210967353e51d6f44
parentb2f59ad10f25be0112e9f226a1725bc82c0e793f (diff)
downloadaports-4dbb6142d3e39ab740d6caa7a2b2e44f2c09790c.tar.bz2
aports-4dbb6142d3e39ab740d6caa7a2b2e44f2c09790c.tar.xz
main/gpsd PPS may fail if baudrate is not set with stty before startup
Reference: http://catb.org/gpsd/upstream-bugs.html#tiocmwait
-rw-r--r--main/gpsd/APKBUILD4
-rw-r--r--main/gpsd/gpsd.confd9
2 files changed, 8 insertions, 5 deletions
diff --git a/main/gpsd/APKBUILD b/main/gpsd/APKBUILD
index c79c330cfb..a0b2ce4087 100644
--- a/main/gpsd/APKBUILD
+++ b/main/gpsd/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Nathan Angelacos <nangel@alpinelinux.org>
pkgname=gpsd
pkgver=3.7
-pkgrel=1
+pkgrel=2
pkgdesc="A GPS daemon"
arch=all
url="http://catb.org/gpsd/"
@@ -52,4 +52,4 @@ package() {
md5sums="52d9785eaf1a51298bb8900dbde88f98 gpsd-3.7.tar.gz
ac2c2a034c15df16c28c755d47d3dd74 gpsd.initd
-5ece6caa9e2202984fcf4853ecbe42e6 gpsd.confd"
+453f3d1d75d2b048f0987cfb9cf250fd gpsd.confd"
diff --git a/main/gpsd/gpsd.confd b/main/gpsd/gpsd.confd
index 27bb332ace..30af2c3ee5 100644
--- a/main/gpsd/gpsd.confd
+++ b/main/gpsd/gpsd.confd
@@ -3,6 +3,7 @@
# The GPS device (/dev/ttyUSB0, /dev/ttyS0, ...)
DEVICE=""
+BAUDRATE="4800"
# Optional arguments
# Options include:
@@ -19,8 +20,10 @@ ARGS="-n "
# Serial setup
#
# For serial interfaces, options such as low_latency are recommended
-# Uncomment the following line to set the /dev/ttySxx device options, if
-# desired:
-
+# Also, http://catb.org/gpsd/upstream-bugs.html#tiocmwait recommends
+# setting the baudrate with stty
+# Uncomment the following lines if using a serial device:
+#
+# /bin/stty -F ${DEVICE} ${BAUDRATE}
# /bin/setserial ${DEVICE} low_latency