if[[-n$(service hostapd status | grep-w active | grep-w running)]];then
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
dialog --title"Choose a AP mode"--backtitle"$BACKTITLE"--help-button--help-label"Manual"--yes-label"Bridge"--no-label"NAT"--yesno"\nBridge: wireless clients will use your routers DHCP server\n\nNAT: with own DHCP server, out of your primary network\n\nManual: edit configuration manually" 11 70
dialog --title"Choose Access Point mode for $WIRELESS_ADAPTER"--backtitle"$BACKTITLE"--help-button--help-label"Manual"--yes-label"Bridge"--no-label"NAT"--yesno"\nBridge: wireless clients will use your routers DHCP server\n\nNAT: with own DHCP server, out of your primary network\n\nManual: edit configuration manually" 11 70
response=$?
DEFAULT_ADAPTER=$(ip -4 route ls | grep default | grep-Po'(?<=dev )(\S+)')