File: gpsd-tools.postinst

package info (click to toggle)
gpsd 3.22-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 27,508 kB
  • sloc: ansic: 57,097; xml: 15,491; python: 12,716; cpp: 836; sh: 699; php: 210; makefile: 188; perl: 111; javascript: 26
file content (21 lines) | stat: -rw-r--r-- 498 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
# postinst script for gpsd-tools

set -e

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

    #remove the old xgps config file
    if dpkg --compare-versions "$2" lt "2.91"; then
        [ ! -f /etc/X11/app-defaults/xgps ] || rm -f /etc/X11/app-defaults/xgps || true
    fi
    #remove the old xgpsspeed config file
    if dpkg --compare-versions "$2" lt "2.91-2"; then
        [ ! -f /etc/X11/app-defaults/xgpsspeed ] || rm -f /etc/X11/app-defaults/xgpsspeed || true
    fi

fi

#DEBHELPER#

exit 0