Package: gpsd
Version: 2.39-3
Severity: normal
The "seen" mark is of no use in the "brokenconfig" state as the priorityy of
the question is low. Thus
they are skipped by GO even if in this specific state they ought to become
visible (medium) or even high
(maybe critical). I choosed "high" in the attached patch though it is easy to
change.
Hope this help. I had a previous config without daemon_options and the new
script found the error but all I was
getting was the brokenconfig db_input and nothing more.
Best regards
Alban
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.31-rc1eeepc (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages gpsd depends on:
ii cdebconf [debconf-2.0] 0.143 Debian Configuration Management Sy
ii debconf [debconf-2.0] 1.5.27 Debian configuration management sy
ii libc6 2.9-19 GNU C Library: Shared libraries
ii libdbus-1-3 1.2.14-3 simple interprocess messaging syst
ii libgps18 2.39-3 Global Positioning System - librar
ii lsb-base 3.2-22 Linux Standard Base 3.2 init scrip
ii netbase 4.36 Basic TCP/IP networking system
ii python 2.5.4-3 An interactive high-level object-o
Versions of packages gpsd recommends:
ii udev 0.141-1 /dev/ and hotplug management daemo
Versions of packages gpsd suggests:
ii gpsd-clients 2.39-3 Global Positioning System - client
-- debconf information:
* gpsd/start_daemon: true
* gpsd/device: /dev/gps0
* gpsd/brokenconfig:
* gpsd/daemon_options: -F /var/run/gpsd.sock
* gpsd/autodetection: true
--- gpsd.config.old 2009-07-06 20:53:33.000000000 +0200
+++ gpsd.config 2009-07-06 20:53:20.000000000 +0200
@@ -31,6 +31,7 @@
STATE=2
ERRORS=0
+PRIORITY_BROKENCONFIG="low"
while [ "$startd" = "true" ]; do
#bail out after too many errors
@@ -51,10 +52,10 @@
db_input low gpsd/device || true
;;
3)
- db_input low gpsd/daemon_options || true
+ db_input $PRIORITY_BROKENCONFIG gpsd/daemon_options || true
;;
4)
- db_input low gpsd/autodetection || true
+ db_input $PRIORITY_BROKENCONFIG gpsd/autodetection || true
;;
5)
db_get gpsd/device
@@ -66,8 +67,7 @@
if [ "$autodet" = "true" ]; then
if ! echo "$opts" | grep -q -E -- '-F +/var/run/gpsd.sock';
then
- db_fset gpsd/daemon_options seen false
- db_fset gpsd/autodetection seen false
+ PRIORITY_BROKENCONFIG="high"
db_input low gpsd/brokenconfig || true
db_go || true
STATE=3
@@ -78,8 +78,7 @@
if ! echo "$opts" | grep -q -- '-F'; then
if [ -z "device" ]; then
- db_fset gpsd/device seen false
- db_fset gpsd/daemon_options seen false
+ PRIORITY_BROKENCONFIG="high"
db_input low gpsd/brokenconfig || true
db_go || true
STATE=2