Magellan Linux

Contents of /branches/unlabeled-1.1.1/magellan-initscripts/etc/rc.d/init.d/modules

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Mon Dec 13 22:52:07 2004 UTC (19 years, 3 months ago) by niro
File size: 946 byte(s)
imported.

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

Properties

Name Value
svn:executable *