From d71b799e751f794024e46c37de1fa37ea08ade0b Mon Sep 17 00:00:00 2001 From: Dan Schaper Date: Mon, 10 Oct 2016 08:23:14 -0700 Subject: [PATCH] More cleanups, localize variables, clean formatting. --- automated install/basic-install.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 7067ecda..b7db4a7c 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -326,6 +326,9 @@ setDHCPCD() { } setStaticIPv4() { + local IFCFG_FILE + local IPADDR + local CIDR if [[ -f /etc/dhcpcd.conf ]];then # Debian Family if grep -q "$IPv4_address" /etc/dhcpcd.conf; then @@ -366,9 +369,8 @@ setStaticIPv4() { nmcli con load "${IFCFG_FILE}" > /dev/null fi echo ":::" - echo "::: Setting IP to $IPv4_address. You may need to restart after the install is complete." + echo "::: Setting IP to ${IPv4_address}. You may need to restart after the install is complete." echo ":::" - fi else echo "::: Warning: Unable to locate configuration file to set static IPv4 address!"