home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / var / lib / dpkg / info / libsensors3.postinst < prev    next >
Encoding:
Text File  |  2006-07-11  |  894 b   |  43 lines

  1. #!/bin/sh
  2. # postinst script for libsensors3
  3. #
  4. # Mostly stolen from the Debian xdm scripts
  5. # Copyright 1998, 1999 Branden Robinson.  Licensed under the GNU GPL.
  6. # Acknowlegements to Stephen Early, Mark Eichin, and Manoj Srivastava.
  7. #
  8. # see: dh_installdeb(1)
  9.  
  10. set -e
  11. . /usr/share/debconf/confmodule
  12. db_version 2.0
  13.  
  14. case "$1" in
  15.     configure)
  16.     # Create the device node if MAKEDEV exists
  17.     if [ -x /sbin/MAKEDEV ] ; then
  18.         if [ ! -c /dev/i2c-0 ]; then
  19.             (cd /dev && /sbin/MAKEDEV i2c) || true
  20.         fi
  21.     fi
  22.     ;;
  23.     abort-upgrade|abort-remove|abort-deconfigure)
  24.     ;;
  25.  
  26.     *)
  27.         echo "postinst called with unknown argument \`$1'" >&2
  28.         exit 1
  29.     ;;
  30. esac
  31.  
  32. # dh_installdeb will replace this with shell code automatically
  33. # generated by other debhelper scripts.
  34.  
  35. # Automatically added by dh_makeshlibs
  36. if [ "$1" = "configure" ]; then
  37.     ldconfig
  38. fi
  39. # End automatically added section
  40.  
  41.  
  42. exit 0
  43.