xen-runit-scripts/proc-xen.sysinit
2024-07-23 14:18:55 +02:00

21 lines
334 B
Bash
Executable file

#!/bin/sh
. /usr/lib/rc/functions
case "$1" in
start)
stat_busy "mounting xen"
[ ! -d /proc/xen ] && stat_die proc-xen
[ -e /proc/xen/capabilities ] && stat_die proc-xen
mount -t xenfs xenfs /proc/xen || stat_die proc-xen
add_daemon proc-xen
stat_done proc-xen
;;
*)
echo "usage: $0 {start}"
exit 1
;;
esac