added .../interfaces/.../nodev option and deprecated 'only_ip'
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Sun, 7 Mar 2004 19:40:45 +0000 (19:40 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Sun, 7 Mar 2004 19:40:45 +0000 (19:40 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1141 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/scripts/vserver.functions

index 3d0def0..86fc57a 100644 (file)
@@ -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"