#!/bin/bash #%rlevels: 7:s #%start: 55 #%stop: #deps #%needs: #%before: #%after: source /etc/sysconfig/rc source $rc_functions # stops annoying kernel messages echo "0" > /proc/sys/kernel/printk #renew deps only if not bootet from livecd #a livecd has always the file .bootdev at root if [ ! -e /.bootdev ] then echo -e ${COLOREDSTAR}"Calculating Modules Dependencies ..." modules-update evaluate_retval fi #get modules.autoload file matching to kernel MODULESFILE=/etc/modules.autoload.d/kernel-$(kernel_major_version) (cat ${MODULESFILE}; echo) | # make sure there is a LF at the end while read module args do case "${module}" in \#*|"") continue ;; esac echo -e ${COLOREDSTAR}"Loading module ${COLBLUE}${module}${COLDEFAULT} ..." modprobe ${module} ${args} &>/dev/null evaluate_retval done # sets default level for kernel messages echo "3" > /proc/sys/kernel/printk update_svcstatus $1 splash svc_started "$(basename $0)" 0