diff options
-rw-r--r-- | bridge/init/bridge | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bridge/init/bridge b/bridge/init/bridge index 9cae7e4..430f795 100644 --- a/bridge/init/bridge +++ b/bridge/init/bridge @@ -2,6 +2,10 @@ # Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 +depend() { + use logger +} + start() { # Add bridge interface if ! ip link list bridge 2>/dev/null >&2; then @@ -11,7 +15,7 @@ start() { ip link set bridge up # Set ip address if [ -z "$(ip addr show dev bridge to 192.168.30.1)" ]; then - ip addr add 192.168.30.1/24 dev vbr0 + ip addr add 192.168.30.1/24 dev bridge fi } |