case $LM_SENSORS_BRANCH in
  2)
      if [[ $(uname -r) == 2.4.* ]] ; then
       make I2C_HEADERS=/usr/include \
       PREFIX=${INSTALL_ROOT}/usr \
       install &&
       if [[ "`ls /dev/ | grep i2c-`" == "" ]]
       then
       prog/mkdev/mkdev.sh
       fi
       # ignore depmod errors
       ( depmod -a || true )
      elif [[ $(uname -r) == 2.6.* ]]; then
       make PREFIX=${INSTALL_ROOT}/usr user_install &&
       if [[ "`ls /dev/ | grep i2c-`" == "" ]]
       then
       prog/mkdev/mkdev.sh
       fi
      fi
  ;;
  3)
      make PREFIX=${INSTALL_ROOT}/usr install
  ;;
esac
