From 5d481506b484923540517186458106fa6f84471a Mon Sep 17 00:00:00 2001 From: nbd Date: Tue, 8 Dec 2009 20:04:38 +0000 Subject: fix firmware loading broken by the busybox upgrade git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18705 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/base-files/files/sbin/hotplug-call | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package') diff --git a/package/base-files/files/sbin/hotplug-call b/package/base-files/files/sbin/hotplug-call index e2f7e36177..c5a76a76c1 100755 --- a/package/base-files/files/sbin/hotplug-call +++ b/package/base-files/files/sbin/hotplug-call @@ -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 -- cgit v1.2.3