Quick patch for hostapd.

We want to install it only when needed, but since we are reworking this tool a quick fix as this one should do
This commit is contained in:
Igor
2022-12-30 10:33:30 +01:00
parent 862330392a
commit fbad5607d3

View File

@@ -180,6 +180,7 @@ while true; do
LIST+=( "IP" "Select dynamic or edit static IP address" )
# hostapd
sudo apt-get -y -qq install hostapd > /dev/null
HOSTAPDBRIDGE=$(cat /etc/hostapd.conf 2> /dev/null | grep -w "^bridge=br0")
HOSTAPDSTATUS=$(service hostapd status 2> /dev/null | grep -w active | grep -w running)
if [[ -n "$HOSTAPDSTATUS" ]]; then