drm/i915: Re-use set_base_atomic to share setting of the display registers
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / Documentation / firmware_class / hotplug-script
blob8143a950b60789ce0b0ae9aab24c8a3d5da5b3d9
1 #!/bin/sh
3 # Simple hotplug script sample:
4 #
5 # Both $DEVPATH and $FIRMWARE are already provided in the environment.
7 HOTPLUG_FW_DIR=/usr/lib/hotplug/firmware/
9 if [ "$SUBSYSTEM" == "firmware" -a "$ACTION" == "add" ]; then
10 if [ -f $HOTPLUG_FW_DIR/$FIRMWARE ]; then
11 echo 1 > /sys/$DEVPATH/loading
12 cat $HOTPLUG_FW_DIR/$FIRMWARE > /sys/$DEVPATH/data
13 echo 0 > /sys/$DEVPATH/loading
14 else
15 echo -1 > /sys/$DEVPATH/loading