blob: 1cd3382640af6c6e89a5aafe1a863ca5ad02f52a [file] [log] [blame]
Ed Warnicked6a0fc52016-04-12 17:34:48 -05001#!/bin/bash
2
3# Figure out what system we are running on
4if [ -f /etc/lsb-release ];then
5 . /etc/lsb-release
6elif [ -f /etc/redhat-release ];then
7 yum install -y redhat-lsb
8 DISTRIB_ID=`lsb_release -si`
9 DISTRIB_RELEASE=`lsb_release -sr`
10 DISTRIB_CODENAME=`lsb_release -sc`
11 DISTRIB_DESCRIPTION=`lsb_release -sd`
12fi
13
Dave Wallaceed0e49c2017-01-26 21:42:00 -050014if [ $DISTRIB_ID == "CentOS" ]; then
Ed Warnicked6a0fc52016-04-12 17:34:48 -050015 # Install uio-pci-generic
16 modprobe uio_pci_generic
Dave Wallaceed0e49c2017-01-26 21:42:00 -050017fi
18echo "Starting VPP..."
19if [ $DISTRIB_ID == "Ubuntu" ] && [ $DISTRIB_CODENAME = "trusty" ] ; then
20 start vpp
21else
Ed Warnicked6a0fc52016-04-12 17:34:48 -050022 service vpp start
23fi