]> git.ipfire.org Git - people/stevee/network.git/blobdiff - src/hooks/zones/bridge
Fix hook settings writing and checking
[people/stevee/network.git] / src / hooks / zones / bridge
index 021e4402cda18dd70e425640b729f427fd0d8091..b29c968090d6eb09119e072ea5bd1d6cebd6fbae 100644 (file)
@@ -38,7 +38,7 @@ STP_HELLO=2
 STP_MAXAGE=20
 STP_PRIORITY=512
 
-function hook_check() {
+function hook_check_settings() {
        assert ismac MAC
        assert isbool STP
        assert isoneof STP_MODE stp rstp
@@ -84,7 +84,7 @@ function hook_up() {
        local zone=${1}
        assert isset zone
 
-       zone_settings_read "${zone}" ${HOOK_SETTINGS}
+       zone_settings_read "${zone}"
 
        # Create the bridge if it does not already exist.
        if ! device_exists "${zone}"; then