~ubuntu-branches/ubuntu/jaunty/avahi/jaunty-updates

« back to all changes in this revision

Viewing changes to debian/avahi-daemon.postinst

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2008-06-18 11:11:52 UTC
  • Revision ID: james.westby@ubuntu.com-20080618111152-lz82fokobtnf89ds
Tags: 0.6.22-5ubuntu1
* Merge with Debian unstable.
* debian/rules: Do not use langpack.mk, but call intltool-update manually,
  so that the change becomes applicable to Debian, too.
* Remaining Ubuntu changes:
  - debian/patches/01_avahi-daemon.conf.patch: Disable IPv6. According to
    upstream it is not ready yet and causes hiccups. (LP #116984)
  - debian/rules: Create an up to date PO template during build. (LP #188690)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
 
# postinst script for avahi
 
2
# postinst script for avahi-daemon
3
3
 
4
4
set -e
5
5
 
31
31
      addgroup --quiet --system netdev || true
32
32
    fi
33
33
 
 
34
    # update init script symlinks for new runlevels and priorities for upgrades
 
35
    # from older versions
 
36
    if dpkg --compare-versions "$2" lt-nl 0.6.22-4; then
 
37
      echo "Reinstalling init script for new runlevels and priorities ..." >&2
 
38
      # remove old init script symlinks; dh_installinit adds the proper
 
39
      # update-rc.d snippet later on
 
40
      update-rc.d -f avahi-daemon remove >/dev/null
 
41
    fi
 
42
 
34
43
    # Ask the bus to reload the config file
35
44
    if [ -x "/etc/init.d/dbus" ]; then
36
45
      invoke-rc.d dbus force-reload || true