fcoe-utils/fcoe-utils-stop-using-ifconfig.patch
Hannes Reinecke e1aacbab29 Accepting request 791256 from home:lee_duncan:branches:network:fcoe
- Change use of "ifconfig" to "ip", since ifconfig is no
  longer around (bsc#1073886), adding:
  * fcoe-utils-stop-using-ifconfig.patch

OBS-URL: https://build.opensuse.org/request/show/791256
OBS-URL: https://build.opensuse.org/package/show/network:fcoe/fcoe-utils?expand=0&rev=40
2020-04-06 06:05:19 +00:00

43 lines
1.4 KiB
Diff

diff -aurp fcoe-utils-1.0.32.orig/debug/dcbcheck.sh fcoe-utils-1.0.32/debug/dcbcheck.sh
--- fcoe-utils-1.0.32.orig/debug/dcbcheck.sh 2017-01-17 04:19:20.000000000 -0800
+++ fcoe-utils-1.0.32/debug/dcbcheck.sh 2020-04-02 18:44:06.511563546 -0700
@@ -27,7 +27,7 @@ if [ "${IFNAME}" == "" ] ; then
fi
# Ensure that the interface name provided is valid
-if ifconfig ${IFNAME} 2>&1 | grep -q "Device not found" ; then
+if ip link show dev ${IFNAME} 2>&1 | grep -q "does not exist" ; then
echo "Please provide a valid interface name." >&2
exit 1
fi
Only in fcoe-utils-1.0.32.orig/debug: .dcbcheck.sh.swp
diff -aurp fcoe-utils-1.0.32.orig/debug/fcoedump.sh fcoe-utils-1.0.32/debug/fcoedump.sh
--- fcoe-utils-1.0.32.orig/debug/fcoedump.sh 2017-01-17 04:19:20.000000000 -0800
+++ fcoe-utils-1.0.32/debug/fcoedump.sh 2020-04-02 18:43:46.195599808 -0700
@@ -78,8 +78,10 @@ adapter_info()
ethtool -i $DEVICE
echo -e "#ethtool offloads:"
ethtool -k $DEVICE
- echo -e "#ifconfig:"
- ifconfig $DEVICE
+ echo -e "#ip link:"
+ ip link show dev $DEVICE
+ echo -e "#ip addr:"
+ ip addr show dev $DEVICE
fi
echo -e "\n###Adapter INFO $PHYSDEV"
@@ -93,8 +95,10 @@ adapter_info()
ethtool -k $PHYSDEV
echo -e "#ethtool stats:"
ethtool -S $PHYSDEV
- echo -e "#ifconfig:"
- ifconfig $PHYSDEV
+ echo -e "#ip link:"
+ ip link show dev $PHYSDEV
+ echo -e "#ip addr:"
+ ip addr show dev $PHYSDEV
}
dcbtool_info()