summaryrefslogtreecommitdiffstats
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.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/build-root/vagrant/run.sh b/build-root/vagrant/run.sh
index 7342f38881e..1cd3382640a 100755
--- a/build-root/vagrant/run.sh
+++ b/build-root/vagrant/run.sh
@@ -11,12 +11,13 @@ elif [ -f /etc/redhat-release ];then
DISTRIB_DESCRIPTION=`lsb_release -sd`
fi
-if [ $DISTRIB_ID == "Ubuntu" ]; then
- start vpp
-elif [ $DISTRIB_ID == "CentOS" ]; then
+if [ $DISTRIB_ID == "CentOS" ]; then
# Install uio-pci-generic
modprobe uio_pci_generic
-
- # Start vpp
+fi
+echo "Starting VPP..."
+if [ $DISTRIB_ID == "Ubuntu" ] && [ $DISTRIB_CODENAME = "trusty" ] ; then
+ start vpp
+else
service vpp start
fi