NFVBENCH-196: New NFVbench image for generator part (nfvbench and TRex codes inside VM)
[nfvbench.git] / nfvbenchvm / dib / elements / nfvbenchvm / post-install.d / 03-copy-rc-local
diff --git a/nfvbenchvm/dib/elements/nfvbenchvm/post-install.d/03-copy-rc-local b/nfvbenchvm/dib/elements/nfvbenchvm/post-install.d/03-copy-rc-local
new file mode 100644 (file)
index 0000000..3311530
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+# set accurate rc.local file corresponding to current image built
+if [ $DIB_DEV_IMAGE = "loopvm" ]; then
+    mv /etc/rc.d/rc.local.loopvm /etc/rc.d/rc.local
+else
+    mv /etc/rc.d/rc.local.generator /etc/rc.d/rc.local
+fi
\ No newline at end of file