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 | 75f543cfc68ec59848722fbd6a594c11f7bb99c4 (patch) | |
tree | b7df2e19fe9682c84335ee7a36cc5d8afa0889f1 /package | |
parent | 76da658eb62f7f51b9ff9357040a6fec99e3faf1 (diff) | |
download | upstream-75f543cfc68ec59848722fbd6a594c11f7bb99c4.tar.gz upstream-75f543cfc68ec59848722fbd6a594c11f7bb99c4.tar.bz2 upstream-75f543cfc68ec59848722fbd6a594c11f7bb99c4.zip |
don't run mdev on hotplug pseudo-events that come from user space
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6480 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 |