Files
pve-qemu-qoup/debian/kvm-ifup
T

6 lines
143 B
Bash
Raw Normal View History

2017-04-05 10:49:19 +02:00
#!/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