5
0
mirror of git://git.proxmox.com/git/pve-qemu.git synced 2025-01-11 09:18:18 +03:00
pve-qemu/debian/kvm-ifup
2017-04-05 11:39:09 +02:00

6 lines
143 B
Bash
Executable File

#!/bin/sh
switch=$(/sbin/ip route list | awk '/^default / { print $NF }')
/sbin/ifconfig $1 0.0.0.0 promisc up
/sbin/brctl addif ${switch} $1