summaryrefslogtreecommitdiffstats
path: root/share/scripts/debconf
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-05-26 09:45:46 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-06-03 11:37:20 +0000
commitf1ac6bd6b88e9c8140d19e60fac0f3b3651c56dd (patch)
tree30fbfd40628a75176686835bebeffdbf8584125e /share/scripts/debconf
parentUsing .cfg suffix for preseed files of debconf script for consistency. (diff)
downloadcompute-tools-f1ac6bd6b88e9c8140d19e60fac0f3b3651c56dd.tar.xz
compute-tools-f1ac6bd6b88e9c8140d19e60fac0f3b3651c56dd.zip
Adding auto option to set automatic start in debconf script.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to 'share/scripts/debconf')
-rwxr-xr-xshare/scripts/debconf1
1 files changed, 1 insertions, 0 deletions
diff --git a/share/scripts/debconf b/share/scripts/debconf
index 0c952e8..4f29238 100755
--- a/share/scripts/debconf
+++ b/share/scripts/debconf
@@ -907,6 +907,7 @@ Commands ()
HOSTNAME_SHORT="$(echo ${NAME} | cut -c-8)"
HOST_INTERFACE_NAME="$(echo ${NETWORK0_VETH:-veth-${HOSTNAME_SHORT}-0})"
+ sed -i -e "s|^cnt.auto=.*|cnt.auto=${CNT_AUTO}|" "${CONFIG}/${NAME}.conf"
sed -i -e "s|^cnt.network-bridge=.*|cnt.network-bridge=${HOST_INTERFACE_NAME}:${NETWORK0_BRIDGE:-br0}|g" "${CONFIG}/${NAME}.conf"
sed -i -e "s|^bind=.*|bind=${BIND}|" "${CONFIG}/${NAME}.conf"
sed -i -e "s|^network-veth-extra=.*|network-veth-extra=${HOST_INTERFACE_NAME}:eth0|g" "${CONFIG}/${NAME}.conf"