diff options
Diffstat (limited to 'package/base-files/src/etc/network/if-pre-up.d/03-bridge')
-rwxr-xr-x | package/base-files/src/etc/network/if-pre-up.d/03-bridge | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/package/base-files/src/etc/network/if-pre-up.d/03-bridge b/package/base-files/src/etc/network/if-pre-up.d/03-bridge index 9bdbf8302..916fafadb 100755 --- a/package/base-files/src/etc/network/if-pre-up.d/03-bridge +++ b/package/base-files/src/etc/network/if-pre-up.d/03-bridge @@ -15,7 +15,9 @@ case "$IF_BRIDGE_PORTS" in esac brctl addbr $IFACE || exit 1 -[[ -n $IF_BRIDGE_FD ]] && brctl setfd $IFACE $IF_BRIDGE_FD +if [ "$IF_BRIDGE_FD" != "" ]; then + brctl setfd $IFACE $IF_BRIDGE_FD +fi for IF in $INTERFACES; do if ! grep -q $IF /proc/net/dev; then |