Remove potential softblocks w/ rfkill and specify 802.11g for cloudcutter-flash AP

This commit is contained in:
Khaled Nassar
2022-04-07 22:16:43 +02:00
parent faab82270f
commit 08f035caed
2 changed files with 6 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
FROM debian:bullseye-slim
RUN apt-get -qq update && apt-get install -qy --no-install-recommends \
git hostapd dnsmasq python3 python3-dev python3-pip build-essential \
git hostapd rfkill dnsmasq python3 python3-dev python3-pip build-essential \
libssl-dev iproute2 mosquitto
RUN pip install --upgrade pipenv

View File

@@ -20,4 +20,8 @@ chown mosquitto /run/mosquitto
echo -e "listener 1883 0.0.0.0\nallow_anonymous true\n" >> /etc/mosquitto/mosquitto.conf
/usr/sbin/mosquitto -d -c /etc/mosquitto/mosquitto.conf
printf "ssid=cloudcutter-flash\nchannel=1\nlogger_stdout_level=4\ninterface=$WLAN" | hostapd /dev/stdin -P $(pwd)/hostapd.pid -B
# Fixes WiFi softblock issues
rfkill unblock wifi
# Run in 802.11g on fixed chan 1 for consistency across setups
printf "ssid=cloudcutter-flash\nchannel=1\nhw_mode=g\nlogger_stdout_level=4\ninterface=$WLAN" | hostapd /dev/stdin -P $(pwd)/hostapd.pid -B