Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 205524
b: refs/heads/master
c: 3317fad
h: refs/heads/master
v: v3
  • Loading branch information
Magnus Damm authored and Greg Kroah-Hartman committed Aug 5, 2010
1 parent d0ea5c3 commit 7403760
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 737a3bb9416ce2a7c7a4170852473a4fcc9c67e8
refs/heads/master: 3317fad5e9c741e758707879c68e20de2cb08f87
17 changes: 9 additions & 8 deletions trunk/Documentation/firmware_class/hotplug-script
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@

HOTPLUG_FW_DIR=/usr/lib/hotplug/firmware/

echo 1 > /sys/$DEVPATH/loading
cat $HOTPLUG_FW_DIR/$FIRMWARE > /sys/$DEVPATH/data
echo 0 > /sys/$DEVPATH/loading

# To cancel the load in case of error:
#
# echo -1 > /sys/$DEVPATH/loading
#
if [ "$SUBSYSTEM" == "firmware" -a "$ACTION" == "add" ]; then
if [ -f $HOTPLUG_FW_DIR/$FIRMWARE ]; then
echo 1 > /sys/$DEVPATH/loading
cat $HOTPLUG_FW_DIR/$FIRMWARE > /sys/$DEVPATH/data
echo 0 > /sys/$DEVPATH/loading
else
echo -1 > /sys/$DEVPATH/loading
fi
fi

0 comments on commit 7403760

Please sign in to comment.