Commit Graph

13 Commits

Author SHA1 Message Date
Colin Kuebler
8c5b4da98a Organized setup_ap into three functions, check_config, setup, and cleanup
Use bash trap to guarantee cleanup on script exit
This means the user can ^C out and it will do the right thing
2019-10-13 23:19:06 -04:00
Colin Kuebler
4f8e380956 Merge branch 'no-pw' into development 2019-10-13 23:10:59 -04:00
Colin Kuebler
5e3db7e4d9 Added check for AP mode support 2019-10-12 17:09:46 -04:00
Colin Kuebler
e3168b8339 Remove hostapd.conf writer from setup_ap, and instead include a static file
Cut hostapd.conf down to bare configuration
Added hostapd ctrl interface
Reduce log noise by specifying hostapd log level info
Specify interface for hostapd by argument rather than config
No password on vtrust-flash
Updated smartconfig for no password
2019-10-12 16:07:46 -04:00
Colin Kuebler
b4e893c030 Removed ETH and added GATEWAY to config 2019-10-03 14:41:30 -04:00
Colin Kuebler
4cc1e2e875 Don't modify NetworkManager.conf, just stop NetworkManager temporarily
Seems to fix issues I was having while already connected to a network when starting AP
No longer a need to backup/restore NetworkManager config
We aren't routing traffic to the internet, so no need for iptable modifications
Stop dnsmasq before restarting NetworkManager
2019-10-03 14:15:38 -04:00
Colin Kuebler
153c8ed842 Start dnsmasq with command line options rather than a config file
No need to backup or restore dnsmasq.conf
Use wildcard to resolve all dns queries to 10.42.42.1
Write hostapd.conf locally so we don't need to backup/restore
Use sudo when writing NetworkManager.conf
Added and tweaked some log messages
Use pkill to stop hostapd so the cleanup portion of setup_ap is run
2019-09-26 12:47:39 -04:00
Colin Kuebler
54af5ebba8 Check for wpa_supplicant #19 #84 #172 #208 and many more 2019-07-02 15:31:37 -04:00
Colin Kuebler
d11f94f45d Backup hostapd config #61
Do not overwrite config backups #61
2019-07-02 14:30:09 -04:00
Colin Kuebler
9c8db5752c Added a check to ensure that the configured network interface exists 2019-07-02 14:22:25 -04:00
Colin Kuebler
0e7c1f080c Modify dnsmasq config to only bind to 10.42.42.1 as suggested in #187 2019-07-02 14:13:04 -04:00
Michael Behrisch
aa4b4ecf34 Update setup_ap.sh 2019-01-27 18:18:27 +01:00
Merlin Schumacher
f443485a6a Initial Commit 2019-01-16 20:32:16 +01:00