]> git.ipfire.org Git - people/stevee/network.git/commitdiff
wireless-ap: Bring up hostapd, too when device is plugged in
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 6 Sep 2014 20:15:17 +0000 (22:15 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 6 Sep 2014 20:15:17 +0000 (22:15 +0200)
src/hooks/ports/wireless-ap

index ab84b1f4e972a91aa0d8f538206599d0fe844adf..8a0f81c8a076d819739d3ecafe215130716d2b23 100644 (file)
@@ -203,10 +203,7 @@ function hook_hotplug() {
        # Check if the phy is the same we have
        # read from the configuration file.
        if [ "${PHY}" = "${phy_address}" ]; then
-               wireless_create ${port} --phy="${phy_address}" --type="ap" \
-                       --address="${ADDRESS}"
-
-               exit ${EXIT_OK}
+               hook_up "${port}"
        fi
 
        exit ${EXIT_NOT_HANDLED}