aboutsummaryrefslogtreecommitdiffstats
path: root/build-root
diff options
context:
space:
mode:
Diffstat (limited to 'build-root')
-rw-r--r--build-root/deb/debian/vpp.postrm2
-rw-r--r--build-root/rpm/vpp.spec2
2 files changed, 2 insertions, 2 deletions
diff --git a/build-root/deb/debian/vpp.postrm b/build-root/deb/debian/vpp.postrm
index ac16a459d0f..24b4842fd0a 100644
--- a/build-root/deb/debian/vpp.postrm
+++ b/build-root/deb/debian/vpp.postrm
@@ -7,7 +7,7 @@ pci_dirs=`find /sys/bus/pci/drivers -type d -name igb_uio -o -name uio_pci_gener
for d in $pci_dirs; do
for f in ${d}/*; do
[ -e "${f}/config" ] || continue
- echo 1 > ${f}/remove
+ echo ${f##*/} > ${d}/unbind
basename `dirname ${f}` | xargs echo -n "Removing driver"; echo " for PCI ID" `basename ${f}`
removed=y
done
diff --git a/build-root/rpm/vpp.spec b/build-root/rpm/vpp.spec
index 95196e9be6e..7bc18ca4e8f 100644
--- a/build-root/rpm/vpp.spec
+++ b/build-root/rpm/vpp.spec
@@ -244,7 +244,7 @@ pci_dirs=`find /sys/bus/pci/drivers -type d -name igb_uio -o -name uio_pci_gener
for d in $pci_dirs; do
for f in ${d}/*; do
[ -e "${f}/config" ] || continue
- echo 1 > ${f}/remove
+ echo ${f##*/} > ${d}/unbind
basename `dirname ${f}` | xargs echo -n "Removing driver"; echo " for PCI ID" `basename ${f}`
removed=y
done