clfs-1.2
        clfs-2.1
        clfs-3.0.0-systemd
        clfs-3.0.0-sysvinit
        systemd
        sysvinit
      
      
        
          | Last change
 on this file since ae8300c1 was             163a6701, checked in by Jim Gifford <clfs@…>, 20 years ago | 
        
          | 
r720@server (orig r718):  jim | 2005-11-18 08:06:26 -0800Added bootscripts to cross-lfs svn
 
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            1.0 KB | 
      
      
| Rev | Line |  | 
|---|
| [163a6701] | 1 | #!/bin/sh | 
|---|
|  | 2 | ######################################################################## | 
|---|
|  | 3 | # Begin $rc_base/init.d/hotplug | 
|---|
|  | 4 | # | 
|---|
|  | 5 | # Description : Load modules for system devices | 
|---|
|  | 6 | # | 
|---|
|  | 7 | # Authors     : Zack Winkles, Jeremy Huntwork | 
|---|
|  | 8 | # | 
|---|
|  | 9 | # Version     : 00.00 | 
|---|
|  | 10 | # | 
|---|
|  | 11 | # Notes       : Adjusted this script for use with the lfs-livecd, | 
|---|
|  | 12 | #               adding support for 'expert' cmdline option | 
|---|
|  | 13 | # | 
|---|
|  | 14 | ######################################################################## | 
|---|
|  | 15 |  | 
|---|
|  | 16 | . /etc/sysconfig/rc | 
|---|
|  | 17 | . ${rc_functions} | 
|---|
|  | 18 |  | 
|---|
|  | 19 | case "${1}" in | 
|---|
|  | 20 | start|restart) | 
|---|
|  | 21 | if ! cat /proc/cmdline | grep -q "expert" ; then | 
|---|
|  | 22 | boot_mesg "Loading modules for system devices..." | 
|---|
|  | 23 | for rc in /etc/hotplug/*.rc | 
|---|
|  | 24 | do | 
|---|
|  | 25 | ${rc} ${1} | 
|---|
|  | 26 | done | 
|---|
|  | 27 | else | 
|---|
|  | 28 | boot_mesg "Expert Mode: Skipping module loading..." | 
|---|
|  | 29 | fi | 
|---|
|  | 30 | echo_ok | 
|---|
|  | 31 | ;; | 
|---|
|  | 32 | stop) | 
|---|
|  | 33 | # Remove hotplug as the default manager of hotplug events | 
|---|
|  | 34 | echo /bin/true > /proc/sys/kernel/hotplug | 
|---|
|  | 35 | ;; | 
|---|
|  | 36 | status) | 
|---|
|  | 37 | for rc in /etc/hotplug/*.rc | 
|---|
|  | 38 | do | 
|---|
|  | 39 | ${rc} status | 
|---|
|  | 40 | done | 
|---|
|  | 41 | ;; | 
|---|
|  | 42 | *) | 
|---|
|  | 43 | echo "Usage: ${0} {start|stop|restart|status}" | 
|---|
|  | 44 | exit 1 | 
|---|
|  | 45 | ;; | 
|---|
|  | 46 | esac | 
|---|
|  | 47 |  | 
|---|
|  | 48 | # End $rc_base/init.d/hotplug | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.