ia64/xen-unstable

changeset 7405:f535708469ee

Small cleanup in hotplug script.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Sun Oct 16 12:34:37 2005 +0100 (2005-10-16)
parents 6cf6f8783282
children 9b51e7637676
files tools/examples/xen-backend.agent tools/examples/xen-backend.rules
line diff
     1.1 --- a/tools/examples/xen-backend.agent	Sun Oct 16 11:45:51 2005 +0100
     1.2 +++ b/tools/examples/xen-backend.agent	Sun Oct 16 12:34:37 2005 +0100
     1.3 @@ -1,10 +1,5 @@
     1.4  #! /bin/sh
     1.5  
     1.6 -#ACTION=add
     1.7 -#DEVPATH=/devices/xen-backend/vif-1-0
     1.8 -#PHYSDEVDRIVER=vif
     1.9 -#XENBUS_TYPE=vif
    1.10 -
    1.11  PATH=/etc/xen/scripts:$PATH
    1.12  
    1.13  case "$ACTION" in
    1.14 @@ -25,7 +20,7 @@ case "$ACTION" in
    1.15      xenstore-rm -t "$XENBUS_PATH"
    1.16      ;;
    1.17    online)
    1.18 -    case "$PHYSDEVDRIVER" in
    1.19 +    case "$XENBUS_TYPE" in
    1.20        vif)
    1.21          [ -n "$script" ] && $script up
    1.22          ;;
     2.1 --- a/tools/examples/xen-backend.rules	Sun Oct 16 11:45:51 2005 +0100
     2.2 +++ b/tools/examples/xen-backend.rules	Sun Oct 16 12:34:37 2005 +0100
     2.3 @@ -1,4 +1,4 @@
     2.4  SUBSYSTEM=="xen-backend", KERNEL=="vbd*", ACTION=="add", RUN+="/etc/xen/scripts/block bind"
     2.5  SUBSYSTEM=="xen-backend", KERNEL=="vbd*", ACTION=="remove", RUN+="/etc/xen/scripts/block unbind"
     2.6 -SUBSYSTEM=="xen-backend", KERNEL=="vif*", ENV{PHYSDEVDRIVER}=="vif", ACTION=="online", RUN+="$env{script} up"
     2.7 +SUBSYSTEM=="xen-backend", KERNEL=="vif*", ACTION=="online", RUN+="$env{script} up"
     2.8  SUBSYSTEM=="xen-backend", ACTION=="remove", RUN+="/usr/bin/xenstore-rm -t $env{XENBUS_PATH}"