ed0e49c518
- Make puppetlabs/ubuntu-16.04-64-nocm the default box - Enable x11 forwarding - Install x11-utils required for emacs to work over X11 - Refactor run.sh - Add VPP_VAGRANT_POST_BUILD environment variable to allow selection of installing VPP or run "make test". - Fix dependencies in src/vppapigen.am Change-Id: I0ec054fdc83feb71ca8396df53ed02bf82ecd7e7 Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
24 lines
574 B
Bash
Executable File
24 lines
574 B
Bash
Executable File
#!/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 == "CentOS" ]; then
|
|
# Install uio-pci-generic
|
|
modprobe uio_pci_generic
|
|
fi
|
|
echo "Starting VPP..."
|
|
if [ $DISTRIB_ID == "Ubuntu" ] && [ $DISTRIB_CODENAME = "trusty" ] ; then
|
|
start vpp
|
|
else
|
|
service vpp start
|
|
fi
|