File: libhamlib4t64.preinst

package info (click to toggle)
hamlib 4.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 17,768 kB
  • sloc: ansic: 262,144; sh: 5,398; cpp: 1,578; perl: 876; makefile: 841; python: 148; awk: 58; xml: 26
file content (18 lines) | stat: -rw-r--r-- 514 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
# preinst script for libhamlib

set -e

dpkg-maintscript-helper rm_conffile /etc/udev/60-libhamlib4.rules -- "$@"

# protective diversion of files moved from / to /usr, to avoid file loss.
if [ "$1" = upgrade ] || [ "$1" = install ]; then
    # The diversion should be removed after trixie is released.
    dpkg-divert --package usr-is-merged --no-rename \
        --divert /lib/udev/rules.d/60-libhamlib4.rules.usr-is-merged \
        --add /lib/udev/rules.d/60-libhamlib4.rules
fi

#DEBHELPER#

exit 0