added 'novlandev' interface flag
[util-vserver.git] / util-vserver / scripts / functions
index 4b8e4c8..4a24bd5 100644 (file)
@@ -203,14 +203,21 @@ function colorize
          esac
        fi
            
-       "$@"
+       ( "$@" )
        echo -ne "\e[m"
     fi
 }
 
 function colpanic
 {
-    colorize error   panic     "$@"
+    if test -n "$_VS_ERRFILE"; then
+       echo "$@" >>"$_VS_ERRFILE"
+    else
+       colorize echo -n "$@" >&2
+    fi
+    echo
+
+    exit 1
 }
 
 function colwarning