summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2014-11-24 20:47:12 +1100
committerMartin Schwenke <martin@meltin.net>2014-11-24 20:47:12 +1100
commit393c054b1dc3b6f1eccd2614755c424573a8dc0e (patch)
tree7b2450db5b196c8024a6ec6746dbd79948e6ee06
parenteff93592a298780218299d2ce607947239eda8df (diff)
downloadautocluster-393c054b1dc3b6f1eccd2614755c424573a8dc0e.tar.gz
autocluster-393c054b1dc3b6f1eccd2614755c424573a8dc0e.tar.xz
autocluster-393c054b1dc3b6f1eccd2614755c424573a8dc0e.zip
base_create: Set IPNUM=$FIRSTIP
This allows removal of a kludge in guess_install_network(). Signed-off-by: Martin Schwenke <martin@meltin.net>
-rwxr-xr-xautocluster3
1 files changed, 2 insertions, 1 deletions
diff --git a/autocluster b/autocluster
index 7e259d2..62cbdfd 100755
--- a/autocluster
+++ b/autocluster
@@ -726,7 +726,7 @@ guess_install_network ()
case "$o" in
gw\=*)
INSTALL_GW="${o#gw=}"
- INSTALL_IP="${ip}${FIRSTIP}"
+ INSTALL_IP="$ip"
esac
done
[ -n "$INSTALL_IP" ] || INSTALL_IP="$ip"
@@ -761,6 +761,7 @@ base_create()
setup_timezone
+ IPNUM=$FIRSTIP
make_network_map
guess_install_network