From: Enrico Scholz Date: Wed, 21 Apr 2004 21:16:43 +0000 (+0000) Subject: moved the 'ip_only' handling to the right place X-Git-Tag: VERSION_0_10~94 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e893ee5bd1a651d76dc3d0c073a09a34dad162aa;p=util-vserver.git moved the 'ip_only' handling to the right place git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1489 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/util-vserver/scripts/vserver.functions b/util-vserver/scripts/vserver.functions index c1c9c70..675017a 100644 --- a/util-vserver/scripts/vserver.functions +++ b/util-vserver/scripts/vserver.functions @@ -450,11 +450,6 @@ function _processSingleInterface test "$ip" || { echo $"Can not read ip for '$iface'" >&2; return 1; } - test ! -e "$iface"/only_ip || { - ## LEGACY ALERT - echo $"The 'only_ip' flag for interface '$iface' is deprecated; use 'nodev' instead of" >&2 - unset dev - } test ! -e "$iface"/down || up= while test "$dev"; do @@ -462,6 +457,11 @@ function _processSingleInterface INTERFACES=( "${INTERFACES[@]}" "$ip${prefix:+/$prefix}" ) test ! -e "$iface"/nodev || break + test ! -e "$iface"/only_ip || { + ## LEGACY ALERT + echo $"The 'only_ip' flag for interface '$iface' is deprecated; use 'nodev' instead of" >&2 + break + } case "$dev" in (*.*)