fix firmware loading broken by the busybox upgrade
authorFelix Fietkau <nbd@openwrt.org>
Tue, 8 Dec 2009 20:04:38 +0000 (20:04 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 8 Dec 2009 20:04:38 +0000 (20:04 +0000)
SVN-Revision: 18705

package/base-files/files/sbin/hotplug-call

index e2f7e36..c5a76a7 100755 (executable)
@@ -8,7 +8,7 @@ export HOTPLUG_TYPE="$1"
 [ -d /sys/firmware -a "firmware" = "$HOTPLUG_TYPE" -a "add" = "$ACTION" ] && {
        [ -f "/lib/firmware/$FIRMWARE" ] && {
                echo 1 > "/sys$DEVPATH/loading"
-               cp "/lib/firmware/$FIRMWARE" "/sys$DEVPATH/data"
+               dd if="/lib/firmware/$FIRMWARE" of="/sys$DEVPATH/data" bs=64k
                echo 0 > "/sys$DEVPATH/loading"
        }
        exit 0