aboutsummaryrefslogtreecommitdiff
path: root/bridge
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2017-09-20 22:54:26 +0200
committerKarel Kočí <cynerd@email.cz>2017-09-20 22:54:26 +0200
commit315dd7ca36cd0118f5dd4a98d5321c8ac642643f (patch)
tree76adc628caf78536088de6e3370af5d38a85df7d /bridge
parent0a4fccef3c0d934cc820e2720c46297414f057f8 (diff)
downloadmulticonfig-0.1.1.tar.gz
multiconfig-0.1.1.tar.bz2
multiconfig-0.1.1.zip
Fix bridge servicev0.1.1
Diffstat (limited to 'bridge')
-rw-r--r--bridge/init/bridge6
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
}