Sign in
gfiber
/
vendor
/
opensource
/
pf_ring
/
3362c70e6599eddc73e9ad16faa9405a25513f2e
/
.
/
PF_RING-5.6.0
/
vPF_RING
/
img
/
if-up.sh
blob: b63c2853c2afbddece584cafd2f0e5603e89077d [
file
] [
log
] [
blame
]
#!/bin/sh
set
-
x
switch
=
br0
if
[
-
n
"$1"
];
then
tunctl
-
b
-
t $1
ifconfig $1 up
0.0
.
0.0
promisc
sleep
0.5s
brctl addif $switch $1
exit
0
else
echo
"Error: no interface specified"
exit
1
fi