From 83c4a7885d7c32901ff7335bdbef9d8d9f4417d7 Mon Sep 17 00:00:00 2001 From: fmenguy Date: Mon, 16 Nov 2020 17:01:33 +0100 Subject: NFVBENCH-196: New NFVbench image for generator part (nfvbench and TRex codes inside VM) Change-Id: Id919a1b9dbf5e04b198d022432ed5c64232a27ba Signed-off-by: fmenguy --- .../dib/elements/nfvbenchvm/post-install.d/03-copy-rc-local | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 nfvbenchvm/dib/elements/nfvbenchvm/post-install.d/03-copy-rc-local (limited to '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 index 0000000..3311530 --- /dev/null +++ b/nfvbenchvm/dib/elements/nfvbenchvm/post-install.d/03-copy-rc-local @@ -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 -- cgit 1.2.3-korg