Annotation of /trunk/magellan-initscripts/rc/modules
Parent Directory | Revision Log
Revision 71 -
(hide annotations)
(download)
Tue Mar 15 19:07:56 2005 UTC (19 years, 6 months ago) by niro
Original Path: trunk/magellan-initscripts/etc/rc.d/init.d/modules
File size: 1076 byte(s)
Tue Mar 15 19:07:56 2005 UTC (19 years, 6 months ago) by niro
Original Path: trunk/magellan-initscripts/etc/rc.d/init.d/modules
File size: 1076 byte(s)
updated header and fixed whitespaces
1 | niro | 2 | #!/bin/bash |
2 | niro | 71 | # $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/etc/rc.d/init.d/modules,v 1.2 2005-03-15 19:07:56 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 | #renew deps only if not bootet from livecd | ||
20 | #a livecd has always the file .bootdev at root | ||
21 | if [ ! -e /.bootdev ] | ||
22 | then | ||
23 | echo -e ${COLOREDSTAR}"Calculating Modules Dependencies ..." | ||
24 | modules-update | ||
25 | evaluate_retval | ||
26 | fi | ||
27 | |||
28 | #get modules.autoload file matching to kernel | ||
29 | 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 | * |