|
Line
Link Here
|
| 0 |
-- functions.sh.orig 2009-03-18 01:46:43.000000000 +0100 |
0 |
++ functions.sh 2009-03-18 01:46:02.000000000 +0100 |
|
Lines 659-664
Link Here
|
| 659 |
# EXAMPLE: if is_xenU_sys ; then ... |
659 |
# EXAMPLE: if is_xenU_sys ; then ... |
| 660 |
# |
660 |
# |
| 661 |
is_xenU_sys() { |
661 |
is_xenU_sys() { |
|
|
662 |
dmesg | grep -q 'Booting paravirtualized kernel on Xen' && return 0 |
| 662 |
[[ ! -d /proc/xen ]] && return 1 |
663 |
[[ ! -d /proc/xen ]] && return 1 |
| 663 |
[[ ! -r /proc/xen/capabilities ]] && return 1 |
664 |
[[ ! -r /proc/xen/capabilities ]] && return 1 |
| 664 |
grep -q "control_d" /proc/xen/capabilities && return 1 |
665 |
grep -q "control_d" /proc/xen/capabilities && return 1 |