]> git.ipfire.org Git - network.git/commitdiff
Drop bridge-stp script
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 16 Aug 2017 14:43:42 +0000 (14:43 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 16 Aug 2017 14:43:42 +0000 (14:43 +0000)
This is not doing anything useful for us any more and the kernel
is always logging "failed to start userspace STP" which is true,
but it is not meant to start.

So to avoid any confusion, we will just drop this script.

Fixes: #11464
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Makefile.am
src/functions/functions.constants
src/helpers/bridge-stp [deleted file]

index 29149db07b270f70ed0859601f7447da812c3e67..22c88ad055c40d119a0e251da0e678be360b8f2d 100644 (file)
@@ -176,7 +176,6 @@ dist_network_SCRIPTS = \
        src/ppp/pppoe-server
 
 dist_helpers_SCRIPTS = \
-       src/helpers/bridge-stp \
        src/helpers/dhcpd-config-helper \
        src/helpers/firewall-kernel-init \
        src/helpers/hostapd-config-helper \
@@ -191,15 +190,6 @@ bin_PROGRAMS = \
 src_inetcalc_SOURCES = \
        src/inetcalc.c
 
-bridge-stp-install-hook: bridge-stp-uninstall-hook
-       ln -svf --relative $(DESTDIR)$(helpersdir)/bridge-stp $(DESTDIR)$(sbindir)/
-
-bridge-stp-uninstall-hook:
-       rm -f $(DESTDIR)$(sbindir)/bridge-stp
-
-INSTALL_EXEC_HOOKS += bridge-stp-install-hook
-UNINSTALL_EXEC_HOOKS += bridge-stp-uninstall-hook
-
 dist_hooks_configs_SCRIPTS = \
        src/hooks/configs/dhcp \
        src/hooks/configs/ipv4-static \
index 91e5ffcf7b024c64eb76b5508336e17d02576c54..c2db955ca5b6b71efa055091ac040803db05fdd6 100644 (file)
@@ -76,10 +76,6 @@ EXIT_DAD_OK=0
 EXIT_DAD_FAILED=8
 EXIT_DAD_TENTATIVE=8
 
-# Spanning Tree Protocol
-EXIT_STP_KERNEL=1
-EXIT_STP_ERROR=2
-
 STATUS_UP=0
 STATUS_DOWN=1
 STATUS_NOCARRIER=2
diff --git a/src/helpers/bridge-stp b/src/helpers/bridge-stp
deleted file mode 100644 (file)
index 3074538..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-#!/bin/sh
-###############################################################################
-#                                                                             #
-# IPFire - An Open Source Firewall Solution                                   #
-# Copyright (C) 2011 IPFire development team                                  #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
-###############################################################################
-
-# Change LOG_FACILITY that we will find our messages in syslog.
-LOG_FACILITY=$(basename ${0})
-
-. /usr/lib/network/functions
-
-# Read network settings
-network_settings_read
-
-zone=${1}
-assert isset zone
-
-action=${2}
-assert isset action
-
-# Exit immediately, if zone configuration does not exist.
-# This is for manually created bridges.
-if ! zone_exists ${zone}; then
-       exit ${EXIT_KERNEL_STP}
-fi
-
-# Read zone settings
-zone_settings_read "${zone}" --ignore-superfluous-settings STP
-
-# Make sure STP is enabled for this zone.
-if ! enabled STP; then
-       log ERROR "The kernel tried to enable STP for zone ${zone}"
-       log ERROR "but our configuration disagrees"
-       exit ${EXIT_STP_ERROR}
-fi
-
-case "${action}" in
-       start)
-               log INFO "STP activated for ${zone}"
-               exit ${EXIT_STP_KERNEL}
-               ;;
-       stop)
-               log INFO "STP deactivated for ${zone}"
-               exit ${EXIT_OK}
-               ;;
-       *)
-               log ERROR "Unknown action: ${action}"
-               exit ${EXIT_STP_ERROR}
-esac