~ubuntu-branches/debian/stretch/resolvconf/stretch

« back to all changes in this revision

Viewing changes to debian/postinst

  • Committer: Package Import Robot
  • Author(s): Thomas Hood, Marco Nenciarini, Thomas Hood
  • Date: 2015-06-03 12:00:00 UTC
  • Revision ID: package-import@ubuntu.com-20150603120000-wlrl97ytdq7fzvak
Tags: 1.78
[ Marco Nenciarini ]
* [dd83369] debian/gbp.conf: Use new-style sections sans "git-"
[ Thomas Hood ]
* [f73de5c] Add sysv-rc dependency which should have been added
            in release 1.75 when start and stop were no longer
            given to update-rc.d (Closes: #787457)
* [ac8f46e] postinst: Delete bad rc symlinks arising from #787457.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
        [ -x /usr/sbin/dnssec-triggerd ]
27
27
}
28
28
 
29
 
### Deal with obsolete configuration files ###
30
 
rm -f /etc/dhcp3/dhclient-enter-hooks.d/resolvconf
31
 
[ -f /etc/resolvconf/update.d/bind ] && mv -f /etc/resolvconf/update.d/bind /etc/resolvconf/update.d/bind.dpkg-old
32
 
 
33
 
# We use dh_installinit with --no-start
 
29
case "$1" in
 
30
  configure)
 
31
        ### Deal with obsolete configuration files ###
 
32
        rm -f /etc/dhcp3/dhclient-enter-hooks.d/resolvconf
 
33
        [ -f /etc/resolvconf/update.d/bind ] && mv -f /etc/resolvconf/update.d/bind /etc/resolvconf/update.d/bind.dpkg-old
 
34
 
 
35
        ### If there are "S" runlevel symlinks in runlevels 1-5 then that is bad. Delete them. ###
 
36
        G='/etc/rc[1-5].d/S??resolvconf'
 
37
        if [ "$(echo $G)" != "$G" ] ; then
 
38
                update-rc.d resolvconf remove >/dev/null || :
 
39
        fi
 
40
        ;;
 
41
esac
 
42
 
34
43
#DEBHELPER#
35
44
 
36
45
### Create run-time directories and linkify ###