From 2fa7121f3fa0add707e7be2d0e23c8fc950c0fe1 Mon Sep 17 00:00:00 2001 From: Jon Clausen Date: Thu, 2 Aug 2018 12:38:12 +0200 Subject: support for "CosmosTag" --- adapt-ks-template | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'adapt-ks-template') diff --git a/adapt-ks-template b/adapt-ks-template index afc31e3..6514745 100755 --- a/adapt-ks-template +++ b/adapt-ks-template @@ -29,6 +29,7 @@ Options: -M, --netmask Netmask of target system -N, --nameserver Nameserver of target system -P, --publish-path Path where results will be stored + --cosmos-tag Tag in ndn-sysconf to reference --template Template to use. This is a relative path, plus the name of the template file. Default: ${Template} @@ -96,6 +97,10 @@ function parse_commadline { Kserver="$2" shift ;; + --cosmos-tag) + CosmosTag="${2}" + shift + ;; --template) Template="${2}" shift @@ -213,6 +218,7 @@ sed -ie '4 a #' "${TmpDir}/ks-template" # substitutions: sed -ie "s/HOSTNAME/${Host}/g" "${TmpDir}/ks-template" sed -ie "s/DOMAIN/${Domain}/g" "${TmpDir}/ks-template" +sed -ie "s/COSMOSTAG/${CosmosTag}/g" "${TmpDir}/ks-template" sed -ie "s/INSTALLSERVER/${Kserver}/g" "${TmpDir}/ks-template" sed -ie "s/PRIIP/${IP}/g" "${TmpDir}/ks-template" sed -ie "s/PRINETMASK/${NM}/g" "${TmpDir}/ks-template" -- cgit v1.1