From 797b2a3a353e0f6890159cd4c565055c84112f03 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 12 Apr 2018 15:24:24 +0100 Subject: [PATCH] curl silent mode --- src/freedombone-utils-network | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/freedombone-utils-network b/src/freedombone-utils-network index 559d7623..2ca83867 100755 --- a/src/freedombone-utils-network +++ b/src/freedombone-utils-network @@ -87,7 +87,7 @@ function install_static_network { } function get_external_ipv4_address { - curl ipinfo.io/ip + curl -s ipinfo.io/ip } function get_ipv4_address { @@ -104,7 +104,7 @@ function update_external_ip { ip_update_script=/usr/bin/externalipupdate { echo '#!/bin/bash'; echo "existing_ip=\$(cat $CONFIGURATION_FILE | grep \"EXTERNAL_IPV4_ADDRESS=\" | head -n 1 | awk -F '=' '{print \$2}')'"; - echo "curr_ip=\$(curl ipinfo.io/ip)"; + echo "curr_ip=\$(curl -s ipinfo.io/ip)"; echo "if [[ \"\$curr_ip\" != \"\$existing_ip\" ]]; then"; echo " sed -i \"s|EXTERNAL_IPV4_ADDRESS=.*|EXTERNAL_IPV4_ADDRESS=\${curr_ip}|g\" $CONFIGURATION_FILE"; echo " echo \"\$(date)\" >> ~/${PROJECT_NAME}-external-ip-changes.txt";