File: fcoemon

package info (click to toggle)
fcoe-utils 1.0.31%2Bgit20160622.5dfd3e4-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,060 kB
  • sloc: ansic: 11,919; sh: 1,298; makefile: 81
file content (22 lines) | stat: -rwxr-xr-x 412 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

set -e

run() {
  echo "# $@"
  $@
  echo
}

IFACE=$(ip route show 0/0 | head -n 1 | cut -d ' ' -f 5)

run fcoeadm --pid
run fcoeadm --create $IFACE
run fcoeadm --reset $IFACE
run fcoeadm --Scan $IFACE
run fcoeadm --interface 2> >(grep -v "^PCI capabilities are not supported$" >&2)
run fcoeadm --fcf
run fcoeadm --target
run fcoeadm --lun
run fcoeadm --destroy $IFACE
run service fcoe-utils status