summaryrefslogtreecommitdiff
path: root/adapt-ks-template
diff options
context:
space:
mode:
Diffstat (limited to 'adapt-ks-template')
-rwxr-xr-xadapt-ks-template6
1 files changed, 6 insertions, 0 deletions
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"