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 e2f7e36177c2a808a00d9635ea3e61034b81e649..c5a76a76c134065ec4e1e344517de03b716f79f7 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