summaryrefslogtreecommitdiffstats
path: root/modules.d/95fcoe/stop-fcoe.sh
diff options
context:
space:
mode:
Diffstat (limited to 'modules.d/95fcoe/stop-fcoe.sh')
-rwxr-xr-xmodules.d/95fcoe/stop-fcoe.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules.d/95fcoe/stop-fcoe.sh b/modules.d/95fcoe/stop-fcoe.sh
new file mode 100755
index 0000000..a89cbbc
--- /dev/null
+++ b/modules.d/95fcoe/stop-fcoe.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+for f in /sys/bus/fcoe/devices/ctlr_*; do
+ [ -e "$f" ] || continue
+ echo 0 > "$f"/enabled
+done