Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh -e
- #
- # FreeBSD hotplug script for attaching disks
- #
- # Parameters:
- # $1: xenstore backend path of the vbd
- # $2: action, either "add" or "remove"
- #
- # Environment variables:
- # None
- #
- path=$1
- action=$2
- params=$(xenstore-read "$path/params")
- case $action in
- add)
- #xenstore-write $path/physical-device $params
- exit 0
- ;;
- *)
- exit 0
- ;;
- esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement