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

  1. #!/bin/sh -e
  2. # libusb configuration script
  3.  
  4. # Source debconf library -- we have a Depends line
  5. # to make sure it is there...
  6. . /usr/share/debconf/confmodule
  7. db_version 2.0
  8.  
  9. if [ "$1" = configure ] || [ "$1" = reconfigure ] ; then
  10.     if uname -r | grep -E -q '^2.6.[0-4]([^0-9]|$)' ; then
  11.         db_input medium libsensors3/old2.6kernel || true
  12.         db_go
  13.     fi
  14.  
  15.     if uname -r | grep -q '^2.4' ; then
  16.         if [ ! -d "/proc/sys/dev/sensors" ]  \
  17.            && [ ! -f "/lib/modules/`uname -r`/i2c/i2c-proc.o" ] \
  18.            && [ -f "/lib/modules/`uname -r`/kernel/drivers/i2c-proc.o" ] \
  19.           ; then
  20.             db_input medium libsensors3/nosensors_2.4 || true
  21.             db_go
  22.         fi
  23.     fi
  24.  
  25.     if uname -r | grep -q '^2.6' ; then
  26.         if [ ! -d "/sys/bus/i2c" ] \
  27.            && [ ! -f "/lib/modules/`uname -r`/kernel/drivers/i2c/i2c-core.ko" ] \
  28.            ; then
  29.             db_input medium libsensors3/nosensors_2.6 || true
  30.             db_go
  31.         fi
  32.     fi
  33. fi
  34.  
  35. exit 0
  36.