home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / boot / i386 / rescue / etc / sysconfig / hardware / scripts / functions.pnp < prev    next >
Text File  |  2006-11-29  |  442b  |  19 lines

  1.  
  2. pre_init_pnp() {
  3.     # PnP devices have no modalias attribute. Let's work around.
  4.     # Do this only if there is no config file
  5.     if [ "$SCRIPTNAME" = hwup -a \
  6.          \( -z "$CONFIG" -o ! -r "hwcfg-$CONFIG" -o -n "$NODATA" \) ] ; then
  7.         while read id; 
  8.             do /sbin/modprobe pnp:d$id
  9.         done < $HWD_DEVICEPATH/id
  10.     fi
  11. }
  12.  
  13. # You may also skip the usage of getcfg (which will be removed completely soon)
  14. # with:
  15. get_config_getcfg() {
  16.     get_config_fast
  17. }
  18.  
  19.