X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;ds=sidebyside;f=package%2Fbase-files%2Ffiles%2Fsbin%2Fhotplug-call;h=0d96e80aaf086400ee13778588f2e885156cf79f;hb=e67923dac3fc44f9da32aa0d13a75c0151a76945;hp=b1b6f97b234820107f24a6e1a8dbcd64d398362b;hpb=203cccc4a22bc62775e930f957baab9dcac5cfcb;p=openwrt-10.03%2F.git diff --git a/package/base-files/files/sbin/hotplug-call b/package/base-files/files/sbin/hotplug-call index b1b6f97b2..0d96e80aa 100755 --- a/package/base-files/files/sbin/hotplug-call +++ b/package/base-files/files/sbin/hotplug-call @@ -1,16 +1,7 @@ #!/bin/sh -# Copyright (C) 2006 OpenWrt.org +# Copyright (C) 2006-2010 OpenWrt.org -# bypass the normal hotplug path for firmware loading -# would otherwise cause problems with drivers like bcm43xx -[ "$1" = "firmware" -a "$ACTION" = "add" ] && { - [ -f "/lib/firmware/$FIRMWARE" ] && { - echo 1 > "/sys$DEVPATH/loading" - cp "/lib/firmware/$FIRMWARE" "/sys$DEVPATH/data" - echo 0 > "/sys$DEVPATH/loading" - } - exit 0 -} +export HOTPLUG_TYPE="$1" . /etc/functions.sh