From: Felix Fietkau Date: Sat, 3 Mar 2007 20:59:49 +0000 (+0000) Subject: don't run mdev on hotplug pseudo-events that come from user space X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=df228a5d999ae01431f2d2bac37e312468d8edc9;p=openwrt%2Fstaging%2F981213.git don't run mdev on hotplug pseudo-events that come from user space SVN-Revision: 6480 --- 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