summaryrefslogtreecommitdiffstats
path: root/util-vserver-vars
blob: 086e5087f26ae7bb2204510a688a59be88e95cf1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
: ${REAL_UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
test -e "$REAL_UTIL_VSERVER_VARS" || {
    echo $"Can not find util-vserver installation (the file '$REAL_UTIL_VSERVER_VARS' would be expected); aborting..." >&2
    exit 1
}
. "$REAL_UTIL_VSERVER_VARS"

# save defaults
__REAL_PKGLIBDIR="${__PKGLIBDIR}"
_REAL_VSERVER="${_VSERVER}"

case "$0" in
    vserver)
        # we want to wrap a function from vserver.functions
        # so we want to wrap vserver.functions that will be include with:
	# . $__PKGLIBDIR/vserver.functions
	__PKGLIBDIR="${__PKGLIBDIR}/netns"
        ;;

    *)
        ;;
esac

# overwrite _VSERVER for wrapper script
_VSERVER="/usr/sbin/vserver.netns"