From c35ce18c298ee75f599d413fb6872a0f317caeb2 Mon Sep 17 00:00:00 2001 From: nbd Date: Sat, 3 Mar 2007 20:59:49 +0000 Subject: 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 --- package/base-files/files/sbin/hotplug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package/base-files/files') diff --git a/package/base-files/files/sbin/hotplug b/package/base-files/files/sbin/hotplug index 75d517083..189cfee67 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 -- cgit v1.2.3