Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: sci-geosciences/gpsd/files/gpsd.conf

Issue 6025011: Simplify gpsd ebuild and use the latest available version. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/chromiumos-overlay.git@master
Patch Set: Simplify gpsd ebuild and use the latest available version. Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright 1999-2005 Gentoo Foundation 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 # Distributed under the terms of the GNU General Public License v2 2 # Use of this source code is governed by a BSD-style license that can be
3 # $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/files/gpsd.conf,v 1.7 20 09/08/23 00:01:40 nerdboy Exp $ 3 # found in the LICENSE file.
4 4
5 # Config file for gpsd server 5 description "Run gpsd when the system starts"
6 author "chromium-os-dev@chromium.org"
6 7
7 # ATTENTION: most of the configuration is done in the kernel device 8 start on stopped boot-complete
8 # setup for USB/Serial, Garmin, or other, however, without hotplug,
9 # gpsd still needs to have the device set on the commandline.
10 9
11 # A device may be a local serial device for GPS input, or a URL of 10 script
12 # the form: 11 GPSD_LOG='/tmp/gpsd.log'
rochberg 2011/01/07 18:45:24 If you put this in /var/log, then the log-capture
vb 2011/01/07 21:39:11 The only thing which goes into this file are error
rochberg 2011/01/12 00:44:53 Ahhh--I understand. Please consider using logger
13 # [{dgpsip|ntrip}://][user:passwd@]host[:port][/stream] 12 GPS_DEVICE='/dev/ttyUSB2'
14 # in which case it specifies an input source for DGPS or ntrip data. 13 GPSD_PARAMS='-D 7'
15 # Set GPS_DEV to the device to be used by the gpsd server (see the
16 # INSTALL file in the docs for more info). Run gpsd -h to see a list
17 # supported driver types (most are enabled by default).
18 14
19 # This example is for a Deluo GPS Serial/USB converter dongle, really 15 exec > "${GPSD_LOG}" 2>&1
20 # a pl2303 chip - CONFIG_USB_SERIAL_PL2303 in modern 2.6 kernels.
21 # The normal udev config provides the correct /dev/ttyUSB0 device.
22 16
23 GPS_DEV="/dev/ttyUSB0" 17 retry=0
24 18 while [ ! -e "${GPS_DEVICE}" ]
25 GPSD_OPTS="-b -n -P /var/run/gpsd.pid -F /var/run/gpsd.sock" 19 do
26 20 » if [ "${retry}" = "15" ]; then
rochberg 2011/01/07 18:45:24 20 seconds?
vb 2011/01/07 21:39:11 Done.
21 » echo "${GPS_DEVICE} not found"
22 » exit 1
23 » fi
24 » sleep 1
25 » retry=$((retry + 1))
26 done
27 echo "Found ${GPS_DEVICE} after ${retry} seconds"
28 echo '$GPS_START' > "${GPS_DEVICE}"
29 /usr/sbin/gpsd "${GPSD_PARAMS}" "${GPS_DEVICE}"
30 end script
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698