7342f38881e435da16e67c6c771b124774e8471e
[vpp.git] / build-root / vagrant / run.sh
1 #!/bin/bash
2
3 # Figure out what system we are running on
4 if [ -f /etc/lsb-release ];then
5     . /etc/lsb-release
6 elif [ -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`
12 fi
13
14 if [ $DISTRIB_ID == "Ubuntu" ]; then
15     start vpp
16 elif [ $DISTRIB_ID == "CentOS" ]; then
17     # Install uio-pci-generic
18     modprobe uio_pci_generic
19
20     # Start vpp
21     service vpp start
22 fi