summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hook-functions4
1 files changed, 3 insertions, 1 deletions
diff --git a/hook-functions b/hook-functions
index 9becfe2..55fb342 100644
--- a/hook-functions
+++ b/hook-functions
@@ -207,7 +207,9 @@ sys_walk_modalias()
device_path="$(dirname "${1}")"
device_path="$(dirname "${device_path}")"
- modalias=$(cat "${device_path}/modalias")
+ if [ -e "${device_path}/modalias" ]; then
+ modalias=$(cat "${device_path}/modalias")
+ fi
if [ -n "${modalias}" ]; then
force_load "${modalias}"