mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-30 00:00:11 +01:00
fix script to reset PCIe card
This commit is contained in:
parent
add8dad95b
commit
ab994f2c87
1 changed files with 3 additions and 4 deletions
|
@ -23,13 +23,12 @@
|
||||||
##################################################################################
|
##################################################################################
|
||||||
|
|
||||||
if [ "$#" -ne 1 ]; then
|
if [ "$#" -ne 1 ]; then
|
||||||
echo "usage: $0 BUS:DEV:FNC"
|
echo "usage: $0 BUS:DEV.FNC"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
BDF=$1
|
BDF=$1
|
||||||
|
|
||||||
echo "1" > /sys/bus/pci/devices/$BDF/remove
|
echo "1" > /sys/bus/pci/devices/${BDF}/remove
|
||||||
echo "1" > /sys/bus/pci/rescan
|
echo "1" > /sys/bus/pci/rescan
|
||||||
echo "1" > /sys/bus/pci/devices/$BDF/enable
|
echo "1" > /sys/bus/pci/devices/${BDF}/reset
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue