Commit Graph

24 Commits

Author SHA1 Message Date
Martin Rys
253a525ee6 Fix stop/restart of NetworkManager by switching to systemctl 2022-08-01 13:15:44 +02:00
WereCatf
03e9da38df Try alternate NetworkManager-naming
'service network-manager' may fail on newer Linux-distros
due to the service actually being called 'NetworkManager'
now. This patch tries both and warns the user, if it still
fails.
2021-10-10 12:41:13 +03:00
Anton Avramov
6781b42d05 Fix dnsmasq tries to listen on localhost by default 2020-11-19 12:14:51 -05:00
Colin Kuebler
083dc2d58f Ensure wifi is not blocked by rfkill 2020-05-22 17:09:52 -04:00
Colin Kuebler
932d896447 Add python3 version check 2020-01-01 15:35:08 -05:00
Colin Kuebler
9e16171dc5 Add version information to wifi log for debugging 2020-01-01 15:16:35 -05:00
R0Wi
b5837490ed Improvements discussed in #404 2019-11-19 07:06:52 +01:00
R0Wi
9cfa0f467e Add backward compatibility for hostapd v2.5 and older 2019-11-18 21:42:33 +01:00
Colin Kuebler
c13abf44ce Merge pull request #351 from Churro/ip
Replace ifconfig and explicitly add route to 10.42.42.0/24
2019-11-02 18:07:44 -04:00
Colin Kuebler
70c70fea1e Moved config check from setup_ap to setup_checks 2019-10-29 18:28:21 -04:00
Johannes Feichtner
c70e102542 Replace ifconfig and explicitly add route to 10.42.42.0/24 2019-10-27 01:34:41 +02:00
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