File: avahi-autoipd.preinst

package info (click to toggle)
avahi 0.6.32-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 8,888 kB
  • sloc: ansic: 39,999; sh: 6,219; xml: 4,433; cs: 2,185; makefile: 1,705; python: 310; cpp: 222
file content (19 lines) | stat: -rw-r--r-- 533 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

set -e

case "$1" in
install|upgrade)
    # Remove compat symlinks for dhcp3-client which might have been
    # created during upgrades.
    if dpkg --compare-versions "$2" lt "0.6.28-3"; then
        if [ -L /etc/dhcp3/dhclient-enter-hooks.d/avahi-autoipd ]; then
            rm -f /etc/dhcp3/dhclient-enter-hooks.d/avahi-autoipd
        fi
        if [ -L /etc/dhcp3/dhclient-exit-hooks.d/zzz_avahi-autoipd ]; then
            rm -f /etc/dhcp3/dhclient-exit-hooks.d/zzz_avahi-autoipd
        fi
    fi
esac

#DEBHELPER#