1 2 3 4 5 6
#!/bin/sh for f in /sys/bus/fcoe/devices/ctlr_*; do [ -e "$f" ] || continue echo 0 > "$f"/enabled done