The interface name is a duplicate of the interface name in the
symbolic name. When the interface name is removed, the interface
name can be obtained from the symbolic name.
---
etc/initd/initd.fedora | 4 ++--
etc/initd/initd.suse | 4 ++--
fcoeplumb.in | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/etc/initd/initd.fedora b/etc/initd/initd.fedora
index 9f3e09e..15d9a0f 100755
--- a/etc/initd/initd.fedora
+++ b/etc/initd/initd.fedora
@@ -200,7 +200,7 @@ service_stop()
if [ "$DCB_REQUIRED" != "yes" ] &&
[ "$DCB_REQUIRED" != "YES" ]; then
STATUS=`$FCOEADM -i $ifname 2>&1 | \
- awk '/Interface Name:/{print $3}'`
+ awk '/Symbolic Name:/{print $6}'`
if [ "$STATUS" = "$ifname" ]; then
$FCOEADM -d $ifname
fi
@@ -229,7 +229,7 @@ service_status()
echo "$FCOEMON -- UNUSED"
fi
IF_LIST=`$FCOEADM -i 2>&1 | \
- awk '/Interface Name:/{print $3}' | \
+ awk '/Symbolic Name:/{print $6}' | \
sort | awk '{printf("%s ", $1)}'`
if [ -z "$IF_LIST" ]; then
echo "No interfaces created."
diff --git a/etc/initd/initd.suse b/etc/initd/initd.suse
index 206d197..3dd18e6 100755
--- a/etc/initd/initd.suse
+++ b/etc/initd/initd.suse
@@ -240,7 +240,7 @@ service_stop()
if [ "$DCB_REQUIRED" != "yes" ] &&
[ "$DCB_REQUIRED" != "YES" ]; then
STATUS=`$FCOEADM -i $ifname 2>&1 | \
- awk '/Interface Name:/{print $3}'`
+ awk '/Symbolic Name:/{print $6}'`
if [ "$STATUS" = "$ifname" ]; then
$FCOEADM -d $ifname
fi
@@ -268,7 +268,7 @@ service_status()
checkproc -p ${PID_FILE} ${FCOEMON}
rc_status -v
IF_LIST=`$FCOEADM -i 2>&1 | \
- awk '/Interface Name:/{print $3}' | \
+ awk '/Symbolic Name:/{print $6}' | \
sort | awk '{printf("%s ", $1)}'`
if [ -z "$IF_LIST" ]; then
echo "No interfaces created."
diff --git a/fcoeplumb.in b/fcoeplumb.in
index a25bb5e..6aac4d2 100755
--- a/fcoeplumb.in
+++ b/fcoeplumb.in
@@ -200,7 +200,7 @@ remove_fcoe_interface()
ifname=$1
STATUS=`$FCOEADM -i $ifname 2>&1 | \
- awk '/Interface Name:/{print $3}'`
+ awk '/Symbolic Name:/{print $6}'`
if [ "$STATUS" = "$ifname" ]; then
[ "$DEBUG" = "yes" ] && $LOGGER "$FCOEADM -d $ifname"
$FCOEADM -d $ifname
@@ -215,7 +215,7 @@ create_fcoe_interface()
ifname=$1
STATUS=`$FCOEADM -i $ifname 2>&1 | \
- awk '/Interface Name:/{print $3}'`
+ awk '/Symbolic Name:/{print $6}'`
if [ -z "$STATUS" ]; then
[ "$DEBUG" = "yes" ] && $LOGGER "$FCOEADM -c $ifname"
$FCOEADM -c $ifname
_______________________________________________
devel mailing list
[email protected]
http://www.open-fcoe.org/mailman/listinfo/devel