]> git.ipfire.org Git - people/ms/network.git/blobdiff - src/hooks/ports/batman-adv-port
Rename all "config" to "settings"
[people/ms/network.git] / src / hooks / ports / batman-adv-port
index b14351e052c52d18bfb58976004cc97532862b6e..129acb72eab7c95bfd41c1d42e673245d603ae2b 100644 (file)
@@ -75,7 +75,7 @@ function hook_create() {
        local port=$(port_find_free ${PORT_PATTERN_BATMAN_ADV_PORT})
        assert isset port
 
-       config_write $(port_file ${port}) ${HOOK_SETTINGS}
+       port_settings_write "${port}" ${HOOK_SETTINGS}
 
        exit ${EXIT_OK}
 }
@@ -85,7 +85,7 @@ function hook_edit() {
        assert isset port
        shift
 
-       config_read $(port_file ${port})
+       port_settings_read "${port}" ${HOOK_SETTINGS}
 
        while [ $# -gt 0 ]; do
                case "${1}" in
@@ -105,7 +105,7 @@ function hook_edit() {
                shift
        done
 
-       config_write $(port_file ${port}) ${HOOK_SETTINGS}
+       port_settings_write "${port}" ${HOOK_SETTINGS}
 
        exit ${EXIT_OK}
 }
@@ -114,7 +114,7 @@ function hook_up() {
        local port=${1}
        assert isset port
 
-       config_read $(port_file ${port})
+       port_settings_read "${port}" ${HOOK_SETTINGS}
 
        # Check if the PHY is present.
        local phy=$(phy_get ${PHY})
@@ -175,7 +175,7 @@ function hook_hotplug() {
        assert port_exists ${port}
 
        # Read configuration of port.
-       config_read $(port_file ${port})
+       port_settings_read "${port}" ${HOOK_SETTINGS}
 
        # Get the address of the phy.
        local phy_address=$(phy_get_address ${phy})