xen-runit-scripts/proc-xen/proc-xen.sysinit

22 lines
334 B
Text
Raw Normal View History

2024-07-23 12:54:54 +02:00
#!/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