aboutsummaryrefslogtreecommitdiffstats
path: root/build-root/vagrant/run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build-root/vagrant/run.sh')
-rwxr-xr-xbuild-root/vagrant/run.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/build-root/vagrant/run.sh b/build-root/vagrant/run.sh
new file mode 100755
index 00000000000..7342f38881e
--- /dev/null
+++ b/build-root/vagrant/run.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+# Figure out what system we are running on
+if [ -f /etc/lsb-release ];then
+ . /etc/lsb-release
+elif [ -f /etc/redhat-release ];then
+ yum install -y redhat-lsb
+ DISTRIB_ID=`lsb_release -si`
+ DISTRIB_RELEASE=`lsb_release -sr`
+ DISTRIB_CODENAME=`lsb_release -sc`
+ DISTRIB_DESCRIPTION=`lsb_release -sd`
+fi
+
+if [ $DISTRIB_ID == "Ubuntu" ]; then
+ start vpp
+elif [ $DISTRIB_ID == "CentOS" ]; then
+ # Install uio-pci-generic
+ modprobe uio_pci_generic
+
+ # Start vpp
+ service vpp start
+fi