ia64/linux-2.6.18-xen.hg

view Documentation/firmware_class/hotplug-script @ 524:7f8b544237bf

netfront: Allow netfront in domain 0.

This is useful if your physical network device is in a utility domain.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Apr 15 15:18:58 2008 +0100 (2008-04-15)
parents 831230e53067
children
line source
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 echo 1 > /sys/$DEVPATH/loading
10 cat $HOTPLUG_FW_DIR/$FIRMWARE > /sys/$DEVPATH/data
11 echo 0 > /sys/$DEVPATH/loading
13 # To cancel the load in case of error:
14 #
15 # echo -1 > /sys/$DEVPATH/loading
16 #