Commit 89b44013 authored by wangyongshou's avatar wangyongshou

del useless vpp_run.sh

parent 380d686d
#!/bin/sh -x
#ifconfig enp2s0 down;
#ifconfig enp3s0 down;
#ifconfig enp5s0f0 down;
ifconfig enp1s0f0 down;
ifconfig enp1s0f1 down;
#/work/bupt_oai/NEV_SDK.L.0.3.0-60/download/dpdk-19.08/usertools/dpdk-devbind.py -u 0000:05:00.0
/work96/bupt_oai/NEV_SDK.L.0.3.0-60/download/dpdk-19.08/usertools/dpdk-devbind.py -u 0000:01:00.0
/work96/bupt_oai/NEV_SDK.L.0.3.0-60/download/dpdk-19.08/usertools/dpdk-devbind.py -u 0000:01:00.1
#/mnt/usb/dpdk-19.08/usertools/dpdk-devbind.py -u 0000:04:00.0
#./ip_link.sh_bak
if [ $(id -u) -ne 0 ]; then
exec sudo -E "$0" "$@"
fi
#base=$(dirname $0)
base=$(cd $(dirname $0); pwd)
APP="$base/build-root/install-vpp_debug-native/vpp/bin/vpp"
ARGS="-c $base/startup_debug.conf"
USAGE="Usage: run.sh [-r] [ debug ]
debug: executes vpp under gdb"
while getopts ":r" opt; do
case $opt in
r)
APP="$base/build-root/install-vpp-native/vpp/bin/vpp"
ARGS="-c $base/startup.conf"
;;
\?)
echo "Invalid option: -$OPTARG\n" >&2
echo "$USAGE" >&2
exit 1
;;
esac
done
shift $((OPTIND-1))
if test -z "$1"; then
$APP $ARGS
elif test "$1" = "debug"; then
shift
gdb -ex 'set print pretty on' -ex 'run' --args $APP $ARGS $@
else
echo "$USAGE" >&2
exit 1
fi
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment