since we are speaking of initscripts:
i reported this bug to rh about 6 years ago (they did not fix)
woud it posible for mdk to get it right?

# If a SCSI tape has been detected, load the st module unconditionally
# since many SCSI tapes don't deal well with st being loaded and unloaded
if [ -f /proc/scsi/scsi ] && LC_ALL=C grep -q 'Type:   Sequential-Access' /proc/scsi/scsi 
2>/dev/null ; then
       if LC_ALL=C grep -qv ' 9 st' /proc/devices && [ -n "$USEMODULES" ]; then
               modprobe st >/dev/null 2>&1
       fi
fi

grep -v returns all lines that don't match regexp, it is not a test for a regexp to exits

if ! LC_ALL=C grep -q ' 9 st' /proc/devices && [ -n "$USEMODULES" ]; then

regards
L.

--
Luca Berra -- [EMAIL PROTECTED]
       Communication Media & Services S.r.l.
/"\
\ /     ASCII RIBBON CAMPAIGN
 X        AGAINST HTML MAIL
/ \



Reply via email to