Browse Source

don't run mdev on hotplug pseudo-events that come from user space

SVN-Revision: 6480
Felix Fietkau 19 years ago
parent
commit
df228a5d99
1 changed files with 1 additions and 1 deletions
  1. 1 1
      package/base-files/files/sbin/hotplug

+ 1 - 1
package/base-files/files/sbin/hotplug

@@ -1,7 +1,7 @@
 #!/bin/sh
 # Copyright (C) 2006 OpenWrt.org
 
-[ -x /sbin/mdev ] && /sbin/mdev "$@"
+[ -x /sbin/mdev -a -n "$ACTION" -a -n "$DEVPATH" ] && /sbin/mdev "$@"
 
 # bypass the normal hotplug path for firmware loading
 # would otherwise cause problems with drivers like bcm43xx