1 |
#!/bin/bash |
#!/bin/bash |
2 |
# $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 $ |
# $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 |
|
|
4 |
#%rlevels: 7:s |
#%rlevels: 7:s |
5 |
#%start: 55 |
#%start: 55 |
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 |
|
|
31 |
(cat ${MODULESFILE}; echo) | # make sure there is a LF at the end |
(cat ${MODULESFILE}; echo) | # make sure there is a LF at the end |