From 2a88b11132780a2adba63de519e4c459ee7c3cea Mon Sep 17 00:00:00 2001 From: dahn Date: Tue, 5 Apr 2016 13:28:39 +0200 Subject: [PATCH] CLOUDSTACK-9336 surround the execution of baremetal-vr.py with condition --- systemvm/patches/debian/config/etc/rc.local | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/systemvm/patches/debian/config/etc/rc.local b/systemvm/patches/debian/config/etc/rc.local index 18e7cd1d43b..3b19218cdc9 100755 --- a/systemvm/patches/debian/config/etc/rc.local +++ b/systemvm/patches/debian/config/etc/rc.local @@ -42,7 +42,10 @@ then echo 1000000 > /proc/sys/net/nf_conntrack_max fi -python /opt/cloud/bin/baremetal-vr.py & +if [ "$router" != "" ] +then + python /opt/cloud/bin/baremetal-vr.py & +fi date > /var/cache/cloud/boot_up_done logger -t cloud "Boot up process done"