summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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" ]