95fcoe: update fcoe interface check

The 'create' sysfs entry has been removed for newer fcoe modules,
so just check if the module directory exists.

References: bnc#877288

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
master
Hannes Reinecke 2014-12-11 15:46:21 +01:00 committed by Harald Hoyer
parent 8d40852e8c
commit c64a94caa9
1 changed files with 1 additions and 4 deletions

View File

@ -20,14 +20,11 @@




# BRCM: Later, should check whether bnx2x is loaded first before loading bnx2fc so do not load bnx2fc when there are no Broadcom adapters # BRCM: Later, should check whether bnx2x is loaded first before loading bnx2fc so do not load bnx2fc when there are no Broadcom adapters
[ -e /sys/module/fcoe/parameters/create ] || modprobe -a fcoe || die "FCoE requested but kernel/initrd does not support FCoE" [ -d /sys/module/fcoe ] || modprobe -a fcoe || die "FCoE requested but kernel/initrd does not support FCoE"


modprobe bnx2fc >/dev/null 2>&1 modprobe bnx2fc >/dev/null 2>&1
udevadm settle --timeout=30 udevadm settle --timeout=30


# FCoE actually supported?
[ -e /sys/module/fcoe/parameters/create ] || modprobe fcoe || die "FCoE requested but kernel/initrd does not support FCoE"

parse_fcoe_opts() { parse_fcoe_opts() {
local IFS=: local IFS=:
set $fcoe set $fcoe