X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/203cccc4a22bc62775e930f957baab9dcac5cfcb..603d01fbba5d16467af24fa6c1d5902920d36dbb:/package/base-files/files/sbin/hotplug-call 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