Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 138 - (hide annotations) (download)
Sun Jul 3 13:39:57 2005 UTC (18 years, 10 months ago) by niro
File size: 1079 byte(s)
fixed typos an whitespaces

1 niro 2 #!/bin/bash
2 niro 138 # $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/etc/rc.d/init.d/modules,v 1.3 2005-07-03 13:39:57 niro Exp $
3 niro 2
4     #%rlevels: 7:s
5     #%start: 55
6     #%stop:
7    
8     #deps
9     #%needs:
10     #%before:
11     #%after:
12    
13     source /etc/sysconfig/rc
14     source $rc_functions
15    
16     # stops annoying kernel messages
17     echo "0" > /proc/sys/kernel/printk
18    
19 niro 138 # renew deps only if not booted from livecd
20     # a livecd has always the file .bootdev at root
21 niro 2 if [ ! -e /.bootdev ]
22     then
23 niro 138 echo -e ${COLOREDSTAR}"Calculating modules dependencies ..."
24 niro 2 modules-update
25     evaluate_retval
26     fi
27    
28 niro 138 # get modules.autoload file matching to kernel
29 niro 2 MODULESFILE=/etc/modules.autoload.d/kernel-$(kernel_major_version)
30    
31     (cat ${MODULESFILE}; echo) | # make sure there is a LF at the end
32     while read module args
33     do
34     case "${module}" in
35     \#*|"") continue ;;
36     esac
37     echo -e ${COLOREDSTAR}"Loading module ${COLBLUE}${module}${COLDEFAULT} ..."
38     modprobe ${module} ${args} &>/dev/null
39     evaluate_retval
40     done
41    
42     # sets default level for kernel messages
43     echo "3" > /proc/sys/kernel/printk
44    
45     update_svcstatus $1
46     splash svc_started "$(basename $0)" 0

Properties

Name Value
svn:executable *