files: minor improvement to config file generation script
authorFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 13 Oct 2015 10:34:56 +0000 (12:34 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 13 Oct 2015 11:13:38 +0000 (13:13 +0200)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
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"