#!/bin/sh #---------------------------------------------------------------------------- # /etc/rc.d/ide - load ide cdrom drivers # # Creation: 2003-07-19 fm # Last Update: $Id$ # # Copyright (c) 2003-@@YEAR@@ 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/init.d/functions load='/sbin/modprobe' unload='/sbin/modprobe -r' case ${1} in start) : boot_mesg " * Loading cdrom drivers ..." : ${load} cdrom 2>/dev/null # load generic cdrom driver : ${load} isofs 2>/dev/null # load isofs : evaluate_retval ;; stop) if mount | grep -q 'dev/sr0' then boot_mesg " * Unloading cdrom drivers ..." /bin/umount /dev/sr0 2>/dev/null ${unload} isofs 2>/dev/null # unload isofs ${unload} sr_mod 2>/dev/null # unload sr_mod ${unload} cdrom 2>/dev/null # unload generic cdrom driver evaluate_retval fi ;; esac