#!/bin/sh
test -d /proc/xen || exit 0
test -f /proc/xen/capabilities || mount -t xenfs xen /proc/xen
test -f /proc/xen/capabilities || exit 0
grep -q "control_d" /proc/xen/capabilities || exit 0
for module in xen-evtchn evtchn blkbk netbk; do
modprobe ${module} >/dev/null 2>&1
done