changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > infra / scripts/qemu-ifup.sh

changeset 371: 7dcabf3e0edc
parent: e7b1cc457afd
author: Richard Westhaver <ellis@rwest.io>
date: Tue, 24 Sep 2024 15:53:24 -0400
permissions: -rwxr-xr-x
description: no link in bootstrap.sh
1 #!/bin/sh
2 set -x
3 
4 switch=br0
5 
6 if [ -n "$1" ];then
7  ip tuntap add $1 mode tap user `whoami`
8  ip link set $1 up
9  sleep 0.5s
10  ip link set $1 master $switch
11  exit 0
12 else
13  echo "Error: no interface specified"
14  exit 1
15 fi