blob: 5ef1a1a109edf22df2a066f500bc2db2c6d0e98c (
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
/usr/sbin/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"
;;
*)
# overwrite _VSERVER for wrapper script
_VSERVER="/usr/sbin/vserver.netns"
;;
esac
|