Skip to content

Commit 2a88b11

Browse files
committed
CLOUDSTACK-9336 surround the execution of baremetal-vr.py with condition
1 parent 419f8fb commit 2a88b11

File tree

1 file changed

+4
-1
lines changed
  • systemvm/patches/debian/config/etc

1 file changed

+4
-1
lines changed

systemvm/patches/debian/config/etc/rc.local

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ then
4242
echo 1000000 > /proc/sys/net/nf_conntrack_max
4343
fi
4444

45-
python /opt/cloud/bin/baremetal-vr.py &
45+
if [ "$router" != "" ]
46+
then
47+
python /opt/cloud/bin/baremetal-vr.py &
48+
fi
4649

4750
date > /var/cache/cloud/boot_up_done
4851
logger -t cloud "Boot up process done"

0 commit comments

Comments
 (0)