Added wireless AP service detection & start.

This commit is contained in:
Matias Barcenas 2017-09-02 15:48:36 -05:00
parent 7c52bfe8f4
commit 6b266120d3
1 changed files with 7 additions and 3 deletions

View File

@ -835,12 +835,16 @@ function captive_portal_set_routes() {
function captive_portal_stop_interface() {
captive_portal_unset_routes
if [ "$APRogueService" ] && interface_is_wireless "$WIAccessPoint"; then
ap_stop
fi
}
function captive_portal_start_interface() {
if [ "$APRogueService" ] && interface_is_wireless "$WIAccessPoint"; then
echo -e "$FLUXIONVLine $CaptivePortalStaringAPServiceNotice"
ap_start
fi
echo -e "$FLUXIONVLine $CaptivePortalStaringAPRoutesNotice"
captive_portal_set_routes &