#! /bin/sh #---------------------------------------------------------------------------- # /etc/rc.d/modules - load kernel modules # # Creation: 05.09.2003 fm # Last Update: 05.09.2003 fm # # 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 2>/dev/null fi fi while [ "$idx" -le "$MODULE_N" ] do eval mod='$MODULE_'$idx eval opt='$MODULE_'$idx'_OPTION' insmod $mod $opt done ;; stop) /usr/local/bin/colecho "unloading kernel modules ..." gn ;; esac