diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-03-03 20:59:49 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-03-03 20:59:49 +0000 |
commit | df228a5d999ae01431f2d2bac37e312468d8edc9 (patch) | |
tree | 058067c436b9ce2bde8f9cd1d1187339ffe79b2c /package | |
parent | 57495a67a5578f68b4922e3d47065c8b276977bf (diff) | |
download | upstream-df228a5d999ae01431f2d2bac37e312468d8edc9.tar.gz upstream-df228a5d999ae01431f2d2bac37e312468d8edc9.tar.bz2 upstream-df228a5d999ae01431f2d2bac37e312468d8edc9.zip |
don't run mdev on hotplug pseudo-events that come from user space
SVN-Revision: 6480
Diffstat (limited to 'package')
-rwxr-xr-x | package/base-files/files/sbin/hotplug | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/sbin/hotplug b/package/base-files/files/sbin/hotplug index 75d5170833..189cfee67c 100755 --- a/package/base-files/files/sbin/hotplug +++ b/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 |