DPDK logo

Elixir Cross Referencer

#!/bin/sh
set -x

switch=virbr0

if [ -n "$1" ];then
        /usr/bin/sudo /usr/bin/tunctl -u `whoami` -t $1
        /usr/bin/sudo /sbin/ip link set $1 up
        sleep 0.5s
        /usr/bin/sudo /sbin/brctl addif $switch $1
        exit 0
else
        echo "Error: no interface specified"
        exit 1
fi