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
|