X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=package%2Fbase-files%2Ffiles%2Fsbin%2Fhotplug;h=189cfee67c829791e0312d608e8d7833071ccc14;hb=c35ce18c298ee75f599d413fb6872a0f317caeb2;hp=b1b6f97b234820107f24a6e1a8dbcd64d398362b;hpb=05adaa9794e41d02870a74a1ed7ba58cc59b9286;p=openwrt-10.03%2F.git diff --git a/package/base-files/files/sbin/hotplug b/package/base-files/files/sbin/hotplug index b1b6f97b2..189cfee67 100755 --- a/package/base-files/files/sbin/hotplug +++ b/package/base-files/files/sbin/hotplug @@ -1,6 +1,8 @@ #!/bin/sh # Copyright (C) 2006 OpenWrt.org +[ -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 [ "$1" = "firmware" -a "$ACTION" = "add" ] && {