Commit f0c7e517 authored by Ryan Jackson's avatar Ryan Jackson

Fix for devices that don't have a PHYSDEVPATH when hotplugging

parent 13d4b549
#! /bin/sh
device=/sys/$PHYSDEVPATH
if [ -n "$PHYSDEVPATH" ]; then
device=/sys/$PHYSDEVPATH
else
device=/sys/$DEVPATH
fi
[ -L $device/driver ] && exit 0
[ -f $device/modalias ] || exit 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment