home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / var / lib / dpkg / info / dhcdbd.postinst < prev    next >
Encoding:
Text File  |  2007-03-05  |  517 b   |  29 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5. case "$1" in
  6.   configure)
  7.     # finish the dhcdbd -> zzzz_dhcdbd rename on upgrades
  8.     F=/etc/dhcp3/dhclient-exit-hooks.d/dhcdbd.moved-by-preinst
  9.     if dpkg --compare-versions "$2" le-nl "2.0-2ubuntu2" && [ -e $F ]; then
  10.         rm -f $F
  11.     fi
  12.  
  13.     # Ask the bus to reload the config file
  14.     if [ -x "/etc/init.d/dbus" ]; then
  15.         invoke-rc.d dbus force-reload || true
  16.     fi
  17.  
  18.     # Restart dhcdbd service
  19.     if [ -x "/etc/dbus-1/event.d/22dhcdbd" ]; then
  20.          /etc/dbus-1/event.d/22dhcdbd restart
  21.     fi
  22.         
  23.     ;;
  24. esac
  25.  
  26.  
  27.  
  28. exit 0
  29.