#! /bin/sh #---------------------------------------------------------------------------- # /etc/rc.d/modules - load kernel modules # # Creation: 05.09.2003 fm # Last Update: $Id$ # # Copyright (c) 2003 Frank Meyer # # 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 case $1 in start) /usr/local/bin/colecho "loading kernel modules ..." gn if [ "$POWEROFF" = "yes" ] then if ! lsmod | grep '^apm ' >/dev/null then insmod apm power_off=1 smp=0 realmode_power_off=0 2>/dev/null fi fi idx=0 if [ "$MODULE_N" != "" ] then while [ $idx -le $MODULE_N ] do eval mod='$MODULE_'$idx eval opt='$MODULE_'$idx'_OPTION' insmod $mod $opt done fi ;; stop) ;; esac