From 8bfd7aa539e4c56756e2226b1ef66524bb89e03e Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Sun, 7 Mar 2004 19:40:45 +0000 Subject: [PATCH] added .../interfaces/.../nodev option and deprecated 'only_ip' git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1141 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- util-vserver/scripts/vserver.functions | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/util-vserver/scripts/vserver.functions b/util-vserver/scripts/vserver.functions index 3d0def0..86fc57a 100644 --- a/util-vserver/scripts/vserver.functions +++ b/util-vserver/scripts/vserver.functions @@ -347,7 +347,11 @@ function _processSingleInterface test "$ip" || { echo $"Can not read ip for '$iface'" >&2; return 1; } - test ! -e "$iface"/only_ip || unset dev + test ! -e "$iface"/only_ip || { + echo $"The 'only_ip' flag for interface '$iface' is deprecated; use 'nodev' instead of" >&2 + unset dev + } + test ! -e "$iface"/nodev || unset dev if test "$dev"; then _transformMask2Prefix prefix "$prefix" "$mask" -- 1.8.1.5