From: Michael Tremer Date: Sat, 6 Sep 2014 20:15:17 +0000 (+0200) Subject: wireless-ap: Bring up hostapd, too when device is plugged in X-Git-Tag: 007~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a546df7a2e7f3f3163f9acdb77a18755cbe65f3f;p=network.git wireless-ap: Bring up hostapd, too when device is plugged in --- diff --git a/src/hooks/ports/wireless-ap b/src/hooks/ports/wireless-ap index ab84b1f4..8a0f81c8 100644 --- a/src/hooks/ports/wireless-ap +++ b/src/hooks/ports/wireless-ap @@ -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}