ignore the bridge option if brctl is not available
SVN-Revision: 6145
This commit is contained in:
parent
ee7132b9df
commit
857d350bc7
1 changed files with 16 additions and 14 deletions
|
@ -88,6 +88,7 @@ setup_interface() {
|
||||||
# Setup bridging
|
# Setup bridging
|
||||||
case "$iftype" in
|
case "$iftype" in
|
||||||
bridge)
|
bridge)
|
||||||
|
[ -x /usr/sbin/brctl ] && {
|
||||||
ifconfig "$iface" up 2>/dev/null >/dev/null
|
ifconfig "$iface" up 2>/dev/null >/dev/null
|
||||||
ifconfig "br-$config" 2>/dev/null >/dev/null && {
|
ifconfig "br-$config" 2>/dev/null >/dev/null && {
|
||||||
$DEBUG brctl addif "br-$config" "$iface"
|
$DEBUG brctl addif "br-$config" "$iface"
|
||||||
|
@ -104,6 +105,7 @@ setup_interface() {
|
||||||
ifconfig "$iface" up
|
ifconfig "$iface" up
|
||||||
sleep 1
|
sleep 1
|
||||||
}
|
}
|
||||||
|
}
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue