mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Remove the frontend device directories as well as the backend ones.
Closes bug #424. Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
1 parent
034f2cd52e
commit
20f482d494
2 files changed
+4
No files matched your search
@@ -15,6 +15,9 @@ case "$ACTION" in
|
||||
add)
|
||||
;;
|
||||
remove)
|
||||
# remove device frontend store entries
|
||||
xenstore-rm -t $(xenstore-read "$XENBUS_PATH/frontend") || true
|
||||
|
||||
# remove device backend store entries
|
||||
xenstore-rm -t "$XENBUS_PATH" || true
|
||||
xenstore-rm -t "error/$XENBUS_PATH" || true
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
SUBSYSTEM=="xen-backend", KERNEL=="vbd*", RUN+="/etc/xen/scripts/block $env{ACTION}"
|
||||
SUBSYSTEM=="xen-backend", KERNEL=="vif*", ACTION=="online", RUN+="$env{script} online"
|
||||
SUBSYSTEM=="xen-backend", KERNEL=="vif*", ACTION=="offline", RUN+="$env{script} offline"
|
||||
SUBSYSTEM=="xen-backend", ACTION=="remove", RUN+="/bin/bash -c '/usr/bin/xenstore-rm -t $$(/usr/bin/xenstore-read $env{XENBUS_PATH}/frontend)'"
|
||||
SUBSYSTEM=="xen-backend", ACTION=="remove", RUN+="/usr/bin/xenstore-rm -t $env{XENBUS_PATH}"
|
||||
SUBSYSTEM=="xen-backend", ACTION=="remove", RUN+="/usr/bin/xenstore-rm -t error/$env{XENBUS_PATH}"
|
||||