diff options
author | Christian Heim <phreak@gentoo.org> | 2006-05-25 10:09:00 +0000 |
---|---|---|
committer | Christian Heim <phreak@gentoo.org> | 2006-05-25 10:09:00 +0000 |
commit | 343e5f0438614b51fbad79c4fb4971aae92fc8f4 (patch) | |
tree | 6ecf80c797911a111d76c250846d8cb481e5579f /sbin/functions.sh | |
parent | This is finally baselayout-vserver-1.12.0 (diff) | |
download | baselayout-vserver-343e5f0438614b51fbad79c4fb4971aae92fc8f4.tar.gz baselayout-vserver-343e5f0438614b51fbad79c4fb4971aae92fc8f4.tar.bz2 baselayout-vserver-343e5f0438614b51fbad79c4fb4971aae92fc8f4.zip |
Merging r2046
svn path=/baselayout-vserver/branches/baselayout-1_12/; revision=365
Diffstat (limited to 'sbin/functions.sh')
-rw-r--r-- | sbin/functions.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sbin/functions.sh b/sbin/functions.sh index 34e00ad..7af6843 100644 --- a/sbin/functions.sh +++ b/sbin/functions.sh @@ -502,6 +502,17 @@ is_net_fs() { return $? } +# bool is_net_fs(path) +# +# return 0 if path is under unionfs control +# +# EXAMPLE: if is_union_fs / ; then ... +# +is_union_fs() { + [[ ! -x /sbin/unionctl ]] && return 1 + unionctl "$1" --list &>/dev/null +} + # bool is_uml_sys() # # return 0 if the currently running system is User Mode Linux |