Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: nero4
Fetching contributors…

Cannot retrieve contributors at this time

executable file 28 lines (23 sloc) 0.51 kb
#!/bin/sh
TYPE=`echo ${XENBUS_PATH} | cut -f 2 -d '/'`
DOMID=`echo ${XENBUS_PATH} | cut -f 3 -d '/'`
DEVID=`echo ${XENBUS_PATH} | cut -f 4 -d '/'`
XAPI=/xapi/${DOMID}/hotplug/${TYPE}/${DEVID}
syslog ()
{
BLKTAP=daemon
logger -p$BLKTAP.info -tscripts-tap "$*"
}
case "$1" in
add)
syslog "$XAPI: hotplug deferred to backend change"
;;
change)
syslog "$XAPI: backend changed"
xenstore-write "${XAPI}/hotplug" "online"
;;
remove)
syslog "$XAPI: backend removed"
xenstore-rm "${XAPI}/hotplug"
;;
esac
Jump to Line
Something went wrong with that request. Please try again.