setup_ap.sh logs error "unknow option 'i'"
See original GitHub issueIn the scripts/setup_ap.sh
https://github.com/ct-Open-Source/tuya-convert/blob/2cf2fa59ca04838da89b0c9ac273c1c4227676d3/scripts/setup_ap.sh#L35
there is a call to hostapd
where the wifi interface option is given by the -i
parameter. I’m using Debian 9.9 and getting the error unknow option 'i'
. For me a quick fix was to directly manipulate the scripts/hostapd.conf
by providing the correct wifi interface on my machine.
# interface file to control hostapd from tuya-convert
ctrl_interface=hostapd_ctrl
# our AP SSID
ssid=vtrust-flash
# manually specify channel, as ACS may not work on some systems
channel=1
# set log level to info to cut down on noise
logger_stdout_level=4
# added this line
interface=wlan0
Here’s the output of my hostapd -h
command:
hostapd v2.4
User space daemon for IEEE 802.11 AP management,
IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
Copyright (c) 2002-2015, Jouni Malinen <j@w1.fi> and contributors
usage: hostapd [-hdBKtv] [-P <PID file>] [-e <entropy file>] \
[-g <global ctrl_iface>] [-G <group>] \
<configuration file(s)>
options:
-h show this usage
-d show more debug messages (-dd for even more)
-B run daemon in the background
-e entropy file
-g global control interface path
-G group for control interfaces
-P PID file
-K include key data in debug messages
-f log output to debug file instead of stdout
-T = record to Linux tracing in addition to logging
(records all messages regardless of debug verbosity)
-t include timestamps in some debug messages
-v show hostapd version
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Error Unknown Option - CustomLogReporterPath while ...
Error Unknown Option - CustomLogReporterPath while running existing react-native app with Expo · Ask Question. Asked 4 years, 9 months ago.
Read more >error: unknown option `--http` · Issue #1
When running I get the following > concurrently --kill-others "storybook start -p 19001" "exp start --http" > [1] error: unknown option ...
Read more >Can't adopt APs. Errors in logs "<webapi-15> ERROR dev
After setup AP as standalone device it has status unknown. I'v found that there are errors in server.log. <webapi-116> ERROR dev - [API]...
Read more >Question about setupapi.dev.log -- nonexistent USB ...
To correct this problem, uninstall and reinstall the driver for the device, as follows: Disconnect the device. Right-click Unknown Device, and ...
Read more >Troubleshooting | XCP-ng documentation
If you have a problem on XCP-ng, there's 2 options: ... Windows VM. # (PV-)Driver install log. C:\Windows\INF\setupapi.dev.log ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Resolved with #404, #405
Thanks again for your contributions!
OK sounds good, I would just like to avoid writing a file every time.