mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-23 00:00:01 +01:00
13 lines
219 B
Bash
Executable file
13 lines
219 B
Bash
Executable file
#!/bin/sh
|
|
|
|
if [ "$#" -ne 1 ]; then
|
|
echo "usage: $0 BUS:DEV:FNC"
|
|
exit 1
|
|
fi
|
|
|
|
BDF=$1
|
|
|
|
echo "1" > /sys/bus/pci/devices/$BDF/remove
|
|
echo "1" > /sys/bus/pci/rescan
|
|
echo "1" > /sys/bus/pci/devices/$BDF/enable
|
|
|