From 232e84c8dc15904c667f541e9eee6b3f2d06fe66 Mon Sep 17 00:00:00 2001 From: Aaron Murray Date: Wed, 24 Feb 2021 19:25:34 -0600 Subject: [PATCH] remove message that isn't always accurate --- install | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/install b/install index d5b1850..95d5a88 100755 --- a/install +++ b/install @@ -486,7 +486,6 @@ if [ ${version} -gt 4 ] && [ ${skipNet} -ne 1 ]; then echo "${nic} already found in database. Skipping..." continue fi - nettype="dhcp" if udevadm info /sys/class/net/${nic} | grep -q wlan; then if [ -f "${wpaConf}" ]; then country=$(awk -F'=' '/country=/{gsub(/["\r]/,""); print $NF}' ${wpaConf}) @@ -518,7 +517,6 @@ if [ ${version} -gt 4 ] && [ ${skipNet} -ne 1 ]; then jq --null-input --compact-output \ "{uuid: \"${OMV_CONFIGOBJECT_NEW_UUID}\", devicename: \"${nic}\", method: \"static\", address: \"${ipv4Addr}\", netmask: \"${ipv4Netmask}\", gateway: \"${ipv4GW}\", dnsnameservers: \"8.8.8.8 ${ipv4GW}\"}" | \ omv-confdbadm update "conf.system.network.interface" - - nettype="static" else jq --null-input --compact-output \ "{uuid: \"${OMV_CONFIGOBJECT_NEW_UUID}\", devicename: \"${nic}\", method: \"dhcp\", method6: \"dhcp\"}" | \ @@ -538,7 +536,7 @@ if [ ${version} -gt 4 ] && [ ${skipNet} -ne 1 ]; then ${confCmd} ${network} if [ ${skipReboot} -ne 1 ]; then - echo "Network setup for ${nettype}. Rebooting..." + echo "Network setup. Rebooting..." reboot fi else