trim the list of nameservers from netGetNameserers, there should be no whitespace...
[grml-shlib.git] / sh-lib
diff --git a/sh-lib b/sh-lib
index 84d45e0..9896f71 100644 (file)
--- a/sh-lib
+++ b/sh-lib
@@ -545,7 +545,7 @@ function netGetNameservers
   fi
   
   setCLang
-  ns_=`awk '/^nameserver/{printf "%s ",$2}' $file_`
+  ns_=`awk '/^nameserver/{printf "%s ",$2}' $file_ |xargs echo`
   restoreLang
   if [ -z "$ns_" ]; then
     if [ -z "$message_" ]; then
@@ -703,7 +703,7 @@ function _setDebugLevel
   local debug_="${DEBUG:-0}"
   VERBOSE__="$debug_"
 }
-_checkBootParam
+_setDebugLevel
 # }}}
 
 # END OF FILE