[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Small cleanup in hotplug script.
# HG changeset patch # User kaf24@xxxxxxxxxxxxxxxxxxxx # Node ID f535708469eea4518b951162b4fa485ec38c483c # Parent 6cf6f878328241adf7e07aa58b01b9d5a53574c0 Small cleanup in hotplug script. Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx> diff -r 6cf6f8783282 -r f535708469ee tools/examples/xen-backend.agent --- a/tools/examples/xen-backend.agent Sun Oct 16 10:45:51 2005 +++ b/tools/examples/xen-backend.agent Sun Oct 16 11:34:37 2005 @@ -1,9 +1,4 @@ #! /bin/sh - -#ACTION=add -#DEVPATH=/devices/xen-backend/vif-1-0 -#PHYSDEVDRIVER=vif -#XENBUS_TYPE=vif PATH=/etc/xen/scripts:$PATH @@ -25,7 +20,7 @@ xenstore-rm -t "$XENBUS_PATH" ;; online) - case "$PHYSDEVDRIVER" in + case "$XENBUS_TYPE" in vif) [ -n "$script" ] && $script up ;; diff -r 6cf6f8783282 -r f535708469ee tools/examples/xen-backend.rules --- a/tools/examples/xen-backend.rules Sun Oct 16 10:45:51 2005 +++ b/tools/examples/xen-backend.rules Sun Oct 16 11:34:37 2005 @@ -1,4 +1,4 @@ SUBSYSTEM=="xen-backend", KERNEL=="vbd*", ACTION=="add", RUN+="/etc/xen/scripts/block bind" SUBSYSTEM=="xen-backend", KERNEL=="vbd*", ACTION=="remove", RUN+="/etc/xen/scripts/block unbind" -SUBSYSTEM=="xen-backend", KERNEL=="vif*", ENV{PHYSDEVDRIVER}=="vif", ACTION=="online", RUN+="$env{script} up" +SUBSYSTEM=="xen-backend", KERNEL=="vif*", ACTION=="online", RUN+="$env{script} up" SUBSYSTEM=="xen-backend", ACTION=="remove", RUN+="/usr/bin/xenstore-rm -t $env{XENBUS_PATH}" _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |