Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fixed QAT device binding and device unbinding when vpp package is removed
[vpp.git]
/
build-root
/
deb
/
debian
/
vpp.postrm
diff --git
a/build-root/deb/debian/vpp.postrm
b/build-root/deb/debian/vpp.postrm
index
ac16a45
..
24b4842
100644
(file)
--- 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
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
basename `dirname ${f}` | xargs echo -n "Removing driver"; echo " for PCI ID" `basename ${f}`
removed=y
done