Browse Source

- Installing udev rules again, also remove the old udev rules

symlink /etc/udev/rules.d/025_gpsd.rules, if it still exists
    (Closes: #455036).

git-svn-id: https://ssl.recluse.de/svn/debian/packages/gpsd/trunk@522 9c2cd6cd-4e54-406b-9ece-f07a8ab7d216
tags/debian/2.37-6
bzed 13 years ago
parent
commit
0aac9636b4
2 changed files with 17 additions and 10 deletions
  1. +3
    -1
      debian/changelog
  2. +14
    -9
      debian/gpsd.postinst

+ 3
- 1
debian/changelog View File

@@ -9,7 +9,9 @@ gpsd (2.37-1) UNRELEASED; urgency=low
- Exit gracefully if hotplugging is disabled in /etc/default/gpsd.
* debian/rules:
- Ignore non-existing setup.py in the clean target.
- Installing udev rules again (Closes: #455036).
- Installing udev rules again, also remove the old udev rules
symlink /etc/udev/rules.d/025_gpsd.rules, if it still exists
(Closes: #455036).
* debian/gpsd.examples:
- Deleting file, the example udev rules are installed by default now.



+ 14
- 9
debian/gpsd.postinst View File

@@ -7,15 +7,20 @@ set -e

if [ "$1" = "configure" ] ; then

# generate /etc/default/gpsd
db_get gpsd/device
DEVICES=$RET
db_get gpsd/start_daemon
START=$RET
db_get gpsd/daemon_options
OPTS=$RET
db_get gpsd/autodetection
USBAUTO=$RET
#remove the old udev rules link
if dpkg --compare-versions "$2" lt "2.37-1"; then
[ ! -L /etc/udev/rules.d/025_gpsd.rules ] || rm -f /etc/udev/rules.d/025_gpsd.rules || true
fi

# generate /etc/default/gpsd
db_get gpsd/device
DEVICES=$RET
db_get gpsd/start_daemon
START=$RET
db_get gpsd/daemon_options
OPTS=$RET
db_get gpsd/autodetection
USBAUTO=$RET

cat <<EOF > /etc/default/gpsd
# Default settings for gpsd.


Loading…
Cancel
Save