From 719928555403c4ae3f9160c3608fc93a48827f61 Mon Sep 17 00:00:00 2001 From: Khaled Nassar Date: Fri, 8 Apr 2022 09:59:06 +0200 Subject: [PATCH] Add hostapd logging to debug AP connection problems --- logs/.gitignore | 1 + logs/.gitkeep | 0 src/setup_apmode.sh | 2 +- 3 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 logs/.gitignore create mode 100644 logs/.gitkeep diff --git a/logs/.gitignore b/logs/.gitignore new file mode 100644 index 0000000..397b4a7 --- /dev/null +++ b/logs/.gitignore @@ -0,0 +1 @@ +*.log diff --git a/logs/.gitkeep b/logs/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/src/setup_apmode.sh b/src/setup_apmode.sh index e02d1f4..4d0e718 100755 --- a/src/setup_apmode.sh +++ b/src/setup_apmode.sh @@ -24,4 +24,4 @@ echo -e "listener 1883 0.0.0.0\nallow_anonymous true\n" >> /etc/mosquitto/mosqui rfkill unblock all # Run in 802.11g on fixed chan 1 for consistency across setups -printf "ssid=cloudcutter-flash\nchannel=1\nhw_mode=g\nlogger_stdout=-1\nlogger_stdout_level=4\ninterface=$WLAN" | hostapd /dev/stdin -P $(pwd)/hostapd.pid -B +printf "ssid=cloudcutter-flash\nchannel=1\nhw_mode=g\nlogger_stdout=-1\nlogger_stdout_level=4\ninterface=$WLAN" | hostapd /dev/stdin -P $(pwd)/hostapd.pid -B -dd -t -f /work/logs/hostapd.log