if[[-n$(service hostapd status | grep-w active | grep-w running)]];then
dialog --title"Info"--backtitle"$BACKTITLE"--no-collapse--yesno"\nHostapd service is configured and running.\n\nDo you want to stop the service?" 9 57
dialog --title"Hostapd service is running"--backtitle"$BACKTITLE"--help-button--help-label"Cancel"--yes-label"Stop"--no-label"Edit"--yesno"\nStop: stop and disable\n\nEdit: change basic parameters: SSID, password and channel" 9 70
[[$?= 0 ]]&& service hostapd stop &&sed-i"s/^DAEMON_CONF=.*/DAEMON_CONF=/" /etc/init.d/hostapd
[[$?= 1 ]]&& wlan_edit && service hostapd stop;sleep 1; service hostapd start