Advertisement
gusibsd

Untitled

Mar 1st, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #!/bin/sh -e
  2. #
  3. # FreeBSD hotplug script for attaching disks
  4. #
  5. # Parameters:
  6. # $1: xenstore backend path of the vbd
  7. # $2: action, either "add" or "remove"
  8. #
  9. # Environment variables:
  10. # None
  11. #
  12.  
  13. path=$1
  14. action=$2
  15. params=$(xenstore-read "$path/params")
  16.  
  17. case $action in
  18. add)
  19. #xenstore-write $path/physical-device $params
  20. exit 0
  21. ;;
  22. *)
  23. exit 0
  24. ;;
  25. esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement