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:
emellor@leeni.uk.xensource.com committed 2005-11-23 19:13:13 +00:00
1 parent 034f2cd52e
commit 20f482d494
2 files changed
+4

No files matched your search

+3
View File
@@ -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
View File
@@ -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}"
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.