File: gpsd.config

package info (click to toggle)
gpsd 2.37-7
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 3,564 kB
  • ctags: 2,813
  • sloc: ansic: 20,476; sh: 9,233; xml: 2,910; python: 1,764; php: 472; makefile: 440; cpp: 121
file content (41 lines) | stat: -rw-r--r-- 700 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/sh

set -e

. /usr/share/debconf/confmodule

if [ -s /etc/default/gpsd ] ; then
	. /etc/default/gpsd
	if [ -n "$START_DAEMON" ] ; then
		db_set gpsd/start_daemon "$START_DAEMON"
	fi
	if [ -n "$DAEMON_OPTS" ] ; then
		db_set gpsd/daemon_options "$DAEMON_OPTS"
	fi
	if [ -n "$DEVICES" ] ; then
		db_set gpsd/device "$DEVICES"
	fi
	if [ -n "$USBAUTO" ]; then
		db_set gpsd/autodetection "$USBAUTO"
	fi
fi

db_input medium gpsd/start_daemon || true
db_go

db_get gpsd/start_daemon
START=$RET

if [ "x$START" = "xtrue" ] ; then

	db_input medium gpsd/device || true
	db_go

        db_input medium gpsd/autodetection || true
        db_go

	db_input medium gpsd/daemon_options || true
	db_go
	
fi