mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-02-21 17:34:42 +02:00
ignore the bridge option if brctl is not available
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6145 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
72f846a97c
commit
a2b248eea7
@ -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…
x
Reference in New Issue
Block a user