From: Enrico Scholz Date: Tue, 28 Dec 2004 19:07:48 +0000 (+0000) Subject: use $_ (which expands to absolute paths) instead of trusting into a good $PATH X-Git-Tag: IPSENTINEL_VERSION_0_12~216 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2770a5bfa046e037e4e4feddef4fd4750389033;p=util-vserver.git use $_ (which expands to absolute paths) instead of trusting into a good $PATH a small VLAN fix (do not quote the splitted dev) minor cleanups git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1778 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/util-vserver/scripts/vserver.functions b/util-vserver/scripts/vserver.functions index e35096e..0cf1ad1 100644 --- a/util-vserver/scripts/vserver.functions +++ b/util-vserver/scripts/vserver.functions @@ -474,7 +474,7 @@ function _processSingleInterface return 1 } test -f /proc/net/vlan || { - _addInterfaceCmd VCONFIG "${dev/./ }" + _addInterfaceCmd VCONFIG ${dev/./ } _addInterfaceCmd IP_ADDR 127.0.0.1/8 broadcast 127.255.255.255 dev "$dev" _addInterfaceCmd IP_LINK "$dev" $up } @@ -612,7 +612,7 @@ function prepareStop { pushd "$1/vdir" >/dev/null case "$INITSTYLE" in - sysv) + (sysv) export PREVLEVEL=$RUNLEVEL_START # required by Debian's initscripts ;; esac @@ -681,7 +681,7 @@ function _umountVserverInternal test -e "$fstab" || return 0 shift - tac "$fstab" | { + $_TAC "$fstab" | { is_ok=1 while read src dst tmp; do test "$tmp" || continue