Use iproute instead of vconfig in fcoe-setup.sh

This commit is contained in:
Petr Sabata 2010-11-30 17:27:03 +01:00
parent 38eb48ab98
commit 8a972b6b8f
2 changed files with 20 additions and 2 deletions

View File

@ -0,0 +1,13 @@
--- fcoe-utils-1.0.14/contrib/fcoe-setup.sh 2010-05-18 23:50:48.000000000 +0200
+++ fcoe-utils-1.0.14/contrib/fcoe-setup.sh.new 2010-11-30 17:24:07.839269545 +0100
@@ -24,9 +24,8 @@
vif=$(scan_vlan $ifname $vlan)
if [ -z "$vif" ] ; then
- vconfig set_name_type DEV_PLUS_VID_NO_PAD
- vconfig add $ifname $vlan > /dev/null
vif="$ifname.$vlan"
+ ip link add dev $vif link $ifname type vlan id $vlan
fi
ip link set $vif up
echo "$vif"

View File

@ -1,6 +1,6 @@
Name: fcoe-utils
Version: 1.0.14
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Fibre Channel over Ethernet utilities
Group: Applications/System
@ -18,11 +18,12 @@ Patch1: fcoe-utils-1.0.7-init-condrestart.patch
Patch2: fcoe-utils-1.0.8-includes.patch
Patch3: fcoe-utils-1.0.8-init-LSB.patch
Patch4: fcoe-utils-1.0.12-makefile-data-hook.patch
Patch5: fcoe-utils-1.0.14-no-vconfig.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
ExcludeArch: s390 ppc
BuildRequires: libhbaapi-devel lldpad-devel libtool automake kernel-devel
Requires: lldpad libhbalinux >= 1.0.9 vconfig device-mapper-multipath
Requires: lldpad libhbalinux >= 1.0.9 iproute device-mapper-multipath
Requires(post): chkconfig
Requires(preun): chkconfig initscripts
Requires(postun): initscripts
@ -39,6 +40,7 @@ fcoemon - service to configure DCB Ethernet QOS filters, works with dcbd or lldp
%patch2 -p1 -b .includes-fix
%patch3 -p1 -b .initLSB
%patch4 -p1 -b .data-hook
%patch5 -p1 -b .no-vconfig
%build
./bootstrap.sh
@ -113,6 +115,9 @@ fi
%changelog
* Tue Nov 30 2010 Petr Sabata <psabata@redhat.com> - 1.0.14-3
- Removing dependency on vconfig, rhbz#658525
* Mon Jun 28 2010 Jan Zeleny <jzeleny@redhat.com> - 1.0.14-2
- added device-mapper-multipath to requires (#603242)
- added missing man pages for fcrls, fcnsq and fcping