]> git.ipfire.org Git - people/stevee/network.git/commitdiff
batman-adv-port: Fix wrong function call
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 26 Aug 2014 09:23:48 +0000 (11:23 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 26 Aug 2014 09:24:07 +0000 (11:24 +0200)
src/hooks/ports/batman-adv-port

index 3019c9277350111825d2563e6ddcd99f4805de9c..bfa73215a42692a6cd4e17f12c5cfcbc41a4cbf2 100644 (file)
@@ -147,7 +147,7 @@ function hook_up() {
                --bssid="${MESH_ID}" --essid="${SSID}"
 
        # Add the device as a batman-adv device.
-       local parent="$(_find_parent ${port})"
+       local parent="$(hook_find_parent ${port})"
        if isset parent; then
                batman_adv_interface_add "${parent}" "${port}"
        fi
@@ -208,7 +208,6 @@ function hook_find_parent() {
 
                if [ "${hook}" = "batman-adv" ]; then
                        for child in $(port_get_children "${p}"); do
-                               log ERROR "child=${child}"
                                [ "${child}" = "${port}" ] || continue
 
                                print "${p}"