/[baselayout]/trunk/sbin/functions.sh
Gentoo

Diff of /trunk/sbin/functions.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2046 Revision 2047
643# 643#
644# EXAMPLE: if is_xenU_sys ; then ... 644# EXAMPLE: if is_xenU_sys ; then ...
645# 645#
646is_xenU_sys() { 646is_xenU_sys() {
647 [[ ! -d /proc/xen ]] && return 1 647 [[ ! -d /proc/xen ]] && return 1
648 [[ ! -e /proc/xen/capabilities ]] && return 0 648 [[ ! -r /proc/xen/capabilities ]] && return 1
649 grep -vq "control_d" /proc/xen/capabilities 649 grep -q "control_d" /proc/xen/capabilities && return 1
650 return 0
650} 651}
651 652
652# bool get_mount_fstab(path) 653# bool get_mount_fstab(path)
653# 654#
654# return the parameters to pass to the mount command generated from fstab 655# return the parameters to pass to the mount command generated from fstab

Legend:
Removed from v.2046  
changed lines
  Added in v.2047

  ViewVC Help
Powered by ViewVC 1.1.20