summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Clausen <jac@nordu.net>2018-09-03 12:40:43 +0200
committerJon Clausen <jac@nordu.net>2018-09-03 12:40:43 +0200
commitf4c467323f8e588c0976df5b77dada595eec8676 (patch)
tree4fd54d956edc7f14130077ca769b6178431a9397
parent39c07c5679e01a5bb330341d77c5bfa17f04a675 (diff)
check CosmosHash with '-z'
-rw-r--r--ks-template/hw/dell/R7425/100g-dtn.ks2
-rw-r--r--ks-template/hw/supermicro/SYS-5018D-FN8T/dtn-10g.ks2
2 files changed, 2 insertions, 2 deletions
diff --git a/ks-template/hw/dell/R7425/100g-dtn.ks b/ks-template/hw/dell/R7425/100g-dtn.ks
index 5381d97..63e94e5 100644
--- a/ks-template/hw/dell/R7425/100g-dtn.ks
+++ b/ks-template/hw/dell/R7425/100g-dtn.ks
@@ -72,7 +72,7 @@ echo 'GRUB_SERIAL_COMMAND="serial --speed=115200"' >>/etc/default/grub
# backticks don't work, but $() does
CosmosHash=$(cat /proc/cmdline | sed -e 's/.*cosmoshash=//')
-if [ "x${CosmosHash}" = "x" ]
+if [ -z ${CosmosHash} ]
then
echo "cannot get cosmos hash from cmdline, not running cosmos-bootstrap"
elif [ "${CosmosHash}" = "disabled" ]
diff --git a/ks-template/hw/supermicro/SYS-5018D-FN8T/dtn-10g.ks b/ks-template/hw/supermicro/SYS-5018D-FN8T/dtn-10g.ks
index 40bc9bf..b27c8da 100644
--- a/ks-template/hw/supermicro/SYS-5018D-FN8T/dtn-10g.ks
+++ b/ks-template/hw/supermicro/SYS-5018D-FN8T/dtn-10g.ks
@@ -67,7 +67,7 @@ chvt 6
# backticks don't work, but $() does
CosmosHash=$(cat /proc/cmdline | sed -e 's/.*cosmoshash=//')
-if [ "x${CosmosHash}" = "x" ]
+if [ -z ${CosmosHash} ]
then
echo "cannot get cosmos hash from cmdline, not running cosmos-bootstrap"
elif [ "${CosmosHash}" = "disabled" ]