Whamcloud - gitweb
LU-12368 obdclass: don't send multiple statfs RPCs
[fs/lustre-release.git] / lustre / scripts / lustre_routes_config
index f60ed11..e832b28 100755 (executable)
@@ -1,4 +1,4 @@
-# !/bin/bash
+#!/bin/bash
 #
 # lustre_route_config
 # This script configures lnet with the routes in the passed in file.
@@ -83,6 +83,12 @@ find_arg_value() {
 }
 
 while read line; do
+       # skip lines that are entirely whitespace or
+       # when the first non-whitespace character is #
+       if [[ "$line" =~ ^[[:space:]]*(#|$) ]]; then
+               continue
+       fi
+
        # Parse line using ':' and ',' as delimiters and ignoring all
        # white space, tabs and linefeed
        IFS="$IFS:,"