Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Fix problem shutting down interfaces with names like wlan0-foobar sin… #109

Open
wants to merge 24 commits into
base: master
Choose a base branch
from

Conversation

knro
Copy link

@knro knro commented Mar 19, 2017

This is probably related to this issue: #102

Shutting down interfaces with compounded names like wlan0-XXXX fails since .interface does not include the full name like .iface

foosel and others added 22 commits August 29, 2014 15:16
New wrappers for manipulating hostapd and dnsmasq configuration
files and an AccessPoint class that combines hostapd, dnsmasq
and scheme in order to set up an access point with dhcp, dns
forwarding, local domain resolution and optionally also NATing
to an existing interface.

Also adds support for static interfaces.

New dependency on the netaddr module had to be added in order
to make the ip network handling for the access point mode less
cumbersome.

Scheme now also support overwriting of existing configurations
and more than one entry per configuration key in extended options
(necessary for adding iptables/sysctl calls for post-up/pre-down
events in /etc/network/interfaces).
Forgot to adjust some expected values after switching scheme to multidicts,
sorry, fixed now.
…tion script

Trying to install that stuff (if target location is writable) when being installed as a dependency causes a sandbox violation in easy_install which cannot be circumvented as it seems. So only install bash completion if explicitely invoked to do via "python setup.py install_extras". With "python setup.py uninstall_extras" it's also possible to uninstall.
…d by AccessPoint

Forgot to add a convenience method for that, will be needed though if lib clients want to override the default paths.
Should hopefully get rid of the timing issues when bringing up dnsmasq on AP start
…unction

Since we also handle WPA keyphrases as plain text keyphrases, it makes sense to equally preprocess the entered data from the user here too, instead of forcing him to manually add s: in front of plain text keyphrases.

Alternatively the documentation should hint the user that this is necessary.
Conflicts:
	tests/test_schemes.py
That s: prefix in fact is not strictly necessary, the wifi driver crashed just at the wrong moment, making the "fix" later a false positive
@rockymeza
Copy link
Owner

Hi @knro, I'm sorry. I am no longer going to be maintaining the wifi project. Thanks for your pull request, but unless somebody wants to take over maintenance, I don't know if it will get merged.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants