3 # Get Command Line arguements if present
5 if [ "x$1" != "x" ]; then
8 VPP_DIR=`dirname $0`/../../
11 if [ "x$2" != "x" ]; then
12 SUDOCMD="sudo -H -u $2"
15 echo 'Building VCL test apps'
17 $SUDOCMD perl -pi -e 's/noinst_PROGRAMS/bin_PROGRAMS/g' $VPP_DIR/src/uri.am
18 $SUDOCMD make build-release
19 echo "export WS_ROOT=$VPP_DIR" | sudo -H -u vagrant tee /home/vagrant/.bash_aliases
20 source /home/vagrant/.bash_aliases
21 sudo cp $VPP_DIR/src/vpp/conf/80-vpp.conf /etc/sysctl.d
22 sudo sysctl -p/etc/sysctl.d/80-vpp.conf
23 sudo modprobe uio_pci_generic