summaryrefslogtreecommitdiff
path: root/scripts/init-top/xen
blob: 1ccf74068ac0b538e7b08a60c0ae062f24a483fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

if [ -f /scripts/functions ]; then
  . /scripts/functions
fi

if [ "$(cat /sys/hypervisor/type 2>/dev/null || true)" = xen ] && \
   [ ! -d /sys/bus/xen ]; then
  log_begin_msg "Detected Xen hypervisor, loading xenbus_probe_frontend"
  modprobe -q xenbus_probe_frontend
  log_end_msg
fi