Update script for sysfs changes

This commit is contained in:
Alex Forencich 2020-02-26 12:21:36 -08:00
parent 8d087ecc92
commit bd0482fc96

View File

@ -40,6 +40,10 @@ sleep 0.5
echo "Rescanning bus..."
echo 1 > "/sys/bus/pci/devices/$port/rescan"
if [ -e "/sys/bus/pci/devices/$port/dev_rescan" ]; then
echo 1 > "/sys/bus/pci/devices/$port/dev_rescan"
else
echo 1 > "/sys/bus/pci/devices/$port/rescan"
fi