repo.or.cz
/
pve-qemu-kvm.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
buildsys: handle different target architectures
[pve-qemu-kvm.git]
/
debian
/
kvm-ifup
blob
a4c63eac6b0c3727bc8920f253f7ff2a6c1306ad
1
#!/bin/sh
2
3
switch
=
$
(/
sbin
/
ip route show |
sed
-nre
's/^default .* dev ([^ ]+).*$/\1/;T;p;q'
)
4
/
sbin
/
ip link
set
"
$1
"
up promisc on
5
test -d
"/sys/class/net/
$switch
/bridge"
&& /
sbin
/
ip link
set
"
$1
"
master
"
$switch
"