diff options
author | Karel Kočí <cynerd@email.cz> | 2018-09-12 00:19:18 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2018-09-12 00:19:18 +0200 |
commit | a8bfe6abb693150e9ee01ea6e8d672fc074d1f1c (patch) | |
tree | c5e6cc5166c56ad45a396d9af6d4063ad755d9d5 /bridge | |
parent | 4e4d389127254c7404bc71a308129966bd9a8b07 (diff) | |
download | multiconfig-a8bfe6abb693150e9ee01ea6e8d672fc074d1f1c.tar.gz multiconfig-a8bfe6abb693150e9ee01ea6e8d672fc074d1f1c.tar.bz2 multiconfig-a8bfe6abb693150e9ee01ea6e8d672fc074d1f1c.zip |
New multiconfig design
Diffstat (limited to 'bridge')
-rw-r--r-- | bridge/dhcpd.conf | 13 | ||||
-rw-r--r-- | bridge/init/bridge | 26 | ||||
-rw-r--r-- | bridge/init/bridge-dhcp | 13 | ||||
-rw-r--r-- | bridge/sysctl.conf | 3 |
4 files changed, 0 insertions, 55 deletions
diff --git a/bridge/dhcpd.conf b/bridge/dhcpd.conf deleted file mode 100644 index 7aa8ab2..0000000 --- a/bridge/dhcpd.conf +++ /dev/null @@ -1,13 +0,0 @@ -authoritative; - -default-lease-time 600; -max-lease-time 7200; - -subnet 192.168.30.0 netmask 255.255.255.0 { - range 192.168.30.10 192.168.30.250; - option routers 192.168.30.1; - option subnet-mask 255.255.255.0; - option broadcast-address 192.168.30.255; -} - -option domain-name-servers 217.31.204.130, 193.29.206.206; diff --git a/bridge/init/bridge b/bridge/init/bridge deleted file mode 100644 index 430f795..0000000 --- a/bridge/init/bridge +++ /dev/null @@ -1,26 +0,0 @@ -#!/sbin/openrc-run -# 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 - ip link add name bridge type bridge - fi - # Set bridge up - 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 bridge - fi -} - -stop() { - if ip link list bridge 2>/dev/null >&2; then - ip link del dev bridge - fi -} diff --git a/bridge/init/bridge-dhcp b/bridge/init/bridge-dhcp deleted file mode 100644 index fd93116..0000000 --- a/bridge/init/bridge-dhcp +++ /dev/null @@ -1,13 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -description="Bridge dhcp daemon" -command="/usr/sbin/dhcpd" -pidfile="/run/bridge-dhcp.pid" -command_args="-4 -pf $pidfile -cf /etc/dhcp/bridge_dhcpd.conf bridge" - -depend() { - need bridge - use logger -} diff --git a/bridge/sysctl.conf b/bridge/sysctl.conf deleted file mode 100644 index 9ad9779..0000000 --- a/bridge/sysctl.conf +++ /dev/null @@ -1,3 +0,0 @@ -# vim: ft=sysctl -# Enable ipv4 forwarding -net.ipv4.ip_forward=1 |