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 690 by niro, Sat Mar 22 17:54:14 2008 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2    # $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/etc/rc.d/init.d/modules,v 1.4 2008-03-22 17:54:14 niro Exp $
3    
4  #%rlevels: 7:s  #%rlevels: 7:s
5  #%start: 55  #%start: 55
# Line 15  source $rc_functions Line 16  source $rc_functions
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.690