Magellan Linux

Diff of /trunk/magellan-initscripts/etc/rc.d/init.d/modules

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3 by niro, Mon Dec 13 22:52:07 2004 UTC revision 931 by niro, Thu Nov 5 12:57:14 2009 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2    # $Id$
3    
4  #%rlevels: 7:s  #%rlevels: 7:s
5  #%start: 55  #%start: 55
# Line 9  Line 10 
10  #%before:  #%before:
11  #%after:  #%after:
12    
13  source /etc/sysconfig/rc  source /etc/conf.d/rc
14  source $rc_functions  source ${rc_functions}
15    
16  # stops annoying kernel messages  # stops annoying kernel messages
17  echo "0" > /proc/sys/kernel/printk  echo "0" > /proc/sys/kernel/printk
18    
19  #renew deps only if not bootet from livecd  # renew deps only if not booted from livecd
20  #a livecd has always the file .bootdev at root  # a livecd has always the file .bootdev at root
21  if [ ! -e /.bootdev ]  if [ ! -e /.bootdev ]
22  then  then
23   echo -e ${COLOREDSTAR}"Calculating Modules Dependencies ..."   echo -e ${COLOREDSTAR}"Calculating modules dependencies ..."
24   modules-update   modules-update
25   evaluate_retval   evaluate_retval
26  fi  fi
27    
28  #get modules.autoload file matching to kernel  # get modules.autoload file matching to kernel
29  MODULESFILE=/etc/modules.autoload.d/kernel-$(kernel_major_version)  MODULESFILE=/etc/modules.autoload.d/kernel-$(kernel_major_version)
30    [[ ! -f ${MODULESFILE} ]] && MODULESFILE=/etc/modules.autoload
31    
32  (cat ${MODULESFILE}; echo) | # make sure there is a LF at the end  (cat ${MODULESFILE}; echo) | # make sure there is a LF at the end
33  while read module args  while read module args

Legend:
Removed from v.3  
changed lines
  Added in v.931