home *** CD-ROM | disk | FTP | other *** search
/ chilidog.highland.cc.ks.us / chilidog.highland.cc.ks.us.zip / chilidog.highland.cc.ks.us / backup / bradford.20120305.etc.tar.gz / bradford.20120305.etc.tar / etc / sysconfig / hardware / scripts / functions < prev    next >
Text File  |  2006-06-02  |  688b  |  34 lines

  1. # -*- mode: shell-script;-*-
  2. # vim:syntax=sh
  3. # $Id: functions 1265 2005-09-01 08:09:05Z zoz $
  4. #
  5. # /etc/sysconfig/hardware/scripts/functions
  6. #
  7. # Common functions for hwup and hotplug related scripts
  8. #
  9.  
  10. PATH=/sbin:/bin
  11. HOTPLUG_BIN=/sbin/udevsend
  12.  
  13. . /etc/sysconfig/hardware/config
  14. . /etc/sysconfig/network/scripts/functions.common
  15.  
  16. if [ -r /etc/sysconfig/hotplug ] ; then
  17.     . /etc/sysconfig/hotplug
  18. fi
  19.  
  20. # Get the mount point for sysfs
  21. if [ -f /proc/mounts ]; then
  22.     while read MNTPT MNTDIR MNTSYS MNTTYPE; do
  23.         if test "$MNTSYS" = "sysfs"; then
  24.             SYSFS="$MNTDIR"
  25.             break;
  26.         fi 
  27.     done </proc/mounts
  28. fi
  29. if [ "$SYSFS" = needed ] ; then
  30.     err_mesg "Sysfs not mounted, cannot execute"
  31.     exit 1
  32. fi
  33.  
  34.