From effbb209976f3c74592c2a69bb4086541b567f06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Piliszek?= Date: Sun, 23 Feb 2020 16:35:50 +0100 Subject: [PATCH] Allow to override external network params in init-runonce I'm not marking it CI-only as ppl seem to be using it. OTOH, not adding a release note as we are not promoting its usage. This is to allow us to customize for CI. Change-Id: I8100a6cb63b1e54078629bd6ca8475dc5896784a --- tools/init-runonce | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/init-runonce b/tools/init-runonce index 54708ac1ea..4e2de379f7 100755 --- a/tools/init-runonce +++ b/tools/init-runonce @@ -16,9 +16,9 @@ IMAGE_TYPE=linux # This EXT_NET_CIDR is your public network,that you want to connect to the internet via. ENABLE_EXT_NET=${ENABLE_EXT_NET:-1} -EXT_NET_CIDR='10.0.2.0/24' -EXT_NET_RANGE='start=10.0.2.150,end=10.0.2.199' -EXT_NET_GATEWAY='10.0.2.1' +EXT_NET_CIDR=${EXT_NET_CIDR:-'10.0.2.0/24'} +EXT_NET_RANGE=${EXT_NET_RANGE:-'start=10.0.2.150,end=10.0.2.199'} +EXT_NET_GATEWAY=${EXT_NET_GATEWAY:-'10.0.2.1'} # Sanitize language settings to avoid commands bailing out # with "unsupported locale setting" errors.