#! /bin/sh #---------------------------------------------------------------------------- # /etc/rc.d/modules - load kernel modules # # Creation : 05.09.2003 fm # Last Update: $Id$ # # Copyright (c) 2003-2008 the eisfair team, team(at)eisfair(dot)org # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #---------------------------------------------------------------------------- . /etc/config.d/base insmod_cmd='modprobe' KERNEL_VERSION=`uname -r` case $KERNEL_VERSION in 2.2.*) insmod_cmd='insmod' ;; esac case $1 in start) /usr/local/bin/colecho "loading kernel modules with $insmod_cmd ..." gn if [ "$POWEROFF" = "yes" ] then if ! lsmod | grep '^apm ' >/dev/null then $insmod_cmd apm power_off=1 smp=0 realmode_power_off=0 2>/dev/null fi fi idx=1 if [ "$MODULE_N" != "" ] then while [ $idx -le $MODULE_N ] do eval mod='$MODULE_'$idx eval opt='$MODULE_'$idx'_OPTION' $insmod_cmd $mod $opt idx=`/usr/bin/expr $idx + 1` done fi ;; stop) ;; esac