patch-2.4.23 linux-2.4.23/Documentation/firmware_class/hotplug-script
Next file: linux-2.4.23/Documentation/hw_random.txt
Previous file: linux-2.4.23/Documentation/firmware_class/firmware_sample_driver.c
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
2003-11-28 10:26:19.000000000 -0800
- Orig file:
linux-2.4.22/Documentation/firmware_class/hotplug-script
- Orig date:
1969-12-31 16:00:00.000000000 -0800
diff -urN linux-2.4.22/Documentation/firmware_class/hotplug-script linux-2.4.23/Documentation/firmware_class/hotplug-script
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+# Simple hotplug script sample:
+#
+# Both $DEVPATH and $FIRMWARE are already provided in the environment.
+
+HOTPLUG_FW_DIR=/usr/lib/hotplug/firmware/
+
+echo 1 > /sysfs/$DEVPATH/loading
+cat $HOTPLUG_FW_DIR/$FIRMWARE > /sysfs/$DEVPATH/data
+echo 0 > /sysfs/$DEVPATH/loading
+
+# To cancel the load in case of error:
+#
+# echo -1 > /sysfs/$DEVPATH/loading
+#
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)