files: minor improvement to config file generation script
[olsrd.git] / files / generateEffectiveConfigurationFile
index 59be46b..8a8b59f 100755 (executable)
@@ -141,12 +141,14 @@ echo ""
 
 echo "Generating effective configuration file"
 echo "  $configFile.txt"
+set +e
 echo "/olsrd.conf" | \
-  nc localhost 9090 | \
+  nc 127.0.0.1 9090 | \
   tail -n +6 | \
   sed -r "s/$regex\"$nwif\"/\1\"wlan0\"/" \
   > "$configFile.txt"
 chown --reference="$configFile" "$configFile.txt"
+set -e
 
 
 echo "Stopping all $(basename "$olsrd") instances"