This repository has been archived by the owner on Aug 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 152
Adhoc #3
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Separates the configuration calculation and the interfaces(5) formatting, so the that configuration can be passed directly to ifup
Connects to a network without storing it in the config file Still requires a iface wlan0 inet dhcp interfaces(5) setting to make ifup aware of wlan0.
it's pretty good. Don't forget to add more info to the README. If possible, I would like to avoid an init command. Could we do the checking in |
def ensure_iface(fn):
if ! grep -q 'iface wlan0 inet dhcp' /etc/network/interfaces; then
echo iface wlan0 inet dhcp >> /etc/network/interfaces
fi
return fn
@ensure_face
def connect(args):
... |
Erf-
added a commit
to Erf-/wifi
that referenced
this pull request
Jul 31, 2015
modifié: setup.py Add 'mock' to the requires.
Erf-
added a commit
to Erf-/wifi
that referenced
this pull request
Aug 3, 2015
modifié : tests/test_scan.py modifié : tests/test_schemes.py Pull request fix #2. modifié: tests/test_scan.py modifié: tests/test_schemes.py Pull request fix rockymeza#3. modifié: setup.py Add 'mock' to the requires. Pull request fix rockymeza#4. modifié: .travis.yml Demand for latest update of setuptools when installing. Pull request fix rockymeza#5. Improve code readability. Add Travis to my own repository. Restore file permissions. Pull request fixes rebase. Rebase of the pull request fixes in order to clear the code and to solve some build issues (still least).
Erf-
added a commit
to Erf-/wifi
that referenced
this pull request
Aug 3, 2015
modifié : tests/test_scan.py modifié : tests/test_schemes.py Pull request fix #2. modifié: tests/test_scan.py modifié: tests/test_schemes.py Pull request fix rockymeza#3. modifié: setup.py Add 'mock' to the requires. Pull request fix rockymeza#4. modifié: .travis.yml Demand for latest update of setuptools when installing. Pull request fix rockymeza#5. Improve code readability. Add Travis to my own repository. Restore file permissions. Pull request fixes rebase. Rebase of the pull request fixes in order to clear the code and to solve some build issues (still least).
Erf-
added a commit
to Erf-/wifi
that referenced
this pull request
Aug 3, 2015
modifié : tests/test_scan.py modifié : tests/test_schemes.py Pull request fix #2. modifié: tests/test_scan.py modifié: tests/test_schemes.py Pull request fix rockymeza#3. modifié: setup.py Add 'mock' to the requires. Pull request fix rockymeza#4. modifié: .travis.yml Demand for latest update of setuptools when installing. Pull request fix rockymeza#5. Improve code readability. Add Travis to my own repository. Restore file permissions. Pull request fixes rebase. Rebase of the pull request fixes in order to clear the code and to solve build issues.
Erf-
pushed a commit
to Erf-/wifi
that referenced
this pull request
Aug 3, 2015
Test scan. Modifications qui seront validées : nouveau fichier: tests/test_scan.py nouveau fichier: wifi/dummydata.py modifié: wifi/scan.py Realisation du test du listing de reseaux disponibles en utilisant l'argument 'sudo'. Le fichier dummydata contient les variables qui seront utilisees dans les tests, a l'instar des fixtures de pytest. Le fichier scan contient les modifications apportees par Yohan. Add sudo args to terminal calls. modified : tests/test_parsing.py modified : tests/test_scan.py modified : tests/test_schemes.py removed : wifi/dummydata.py modified : wifi/scheme.py Pull request fix #1. modifié : tests/test_scan.py modifié : tests/test_schemes.py Pull request fix #2. modifié: tests/test_scan.py modifié: tests/test_schemes.py Pull request fix rockymeza#3. modifié: setup.py Add 'mock' to the requires. Pull request fix rockymeza#4. modifié: .travis.yml Demand for latest update of setuptools when installing. Pull request fix rockymeza#5. Improve code readability. Add Travis to my own repository. Restore file permissions. Pull request fixes rebase. Rebase of the pull request fixes in order to clear the code and to solve build issues.
Erf-
added a commit
to Erf-/wifi
that referenced
this pull request
Aug 3, 2015
Le fichier dummydata contient les variables qui seront utilisees dans les tests, a l'instar des fixtures de pytest. Le fichier scan contient les modifications apportees par Yohan. Add sudo args to terminal calls. modified : tests/test_parsing.py modified : tests/test_scan.py modified : tests/test_schemes.py removed : wifi/dummydata.py modified : wifi/scheme.py Pull request fix #1. modifié : tests/test_scan.py modifié : tests/test_schemes.py Pull request fix #2. modifié: tests/test_scan.py modifié: tests/test_schemes.py Pull request fix rockymeza#3. modifié: setup.py Add 'mock' to the requires. Pull request fix rockymeza#4. modifié: .travis.yml Demand for latest update of setuptools when installing. Pull request fix rockymeza#5. Improve code readability. Add Travis to my own repository. Restore file permissions. Pull request fixes rebase. Rebase of the pull request fixes in order to clear the code and to solve build issues.
Erf-
added a commit
to Erf-/wifi
that referenced
this pull request
Aug 3, 2015
Add sudo args to terminal calls. modified : tests/test_parsing.py modified : tests/test_scan.py modified : tests/test_schemes.py removed : wifi/dummydata.py modified : wifi/scheme.py Pull request fix #1. modifié : tests/test_scan.py modifié : tests/test_schemes.py Pull request fix #2. modifié: tests/test_scan.py modifié: tests/test_schemes.py Pull request fix rockymeza#3. modifié: setup.py Add 'mock' to the requires. Pull request fix rockymeza#4. modifié: .travis.yml Demand for latest update of setuptools when installing. Pull request fix rockymeza#5. Improve code readability. Add Travis to my own repository. Restore file permissions. Pull request fixes rebase. Rebase of the pull request fixes in order to clear the code and to solve build issues.
Erf-
added a commit
to Erf-/wifi
that referenced
this pull request
Aug 3, 2015
Add sudo args to terminal calls. modified : tests/test_parsing.py modified : tests/test_scan.py modified : tests/test_schemes.py removed : wifi/dummydata.py modified : wifi/scheme.py Pull request fix #1. modifié : tests/test_scan.py modifié : tests/test_schemes.py Pull request fix #2. modifié: tests/test_scan.py modifié: tests/test_schemes.py Pull request fix rockymeza#3. modifié: setup.py Add 'mock' to the requires. Pull request fix rockymeza#4. modifié: .travis.yml Demand for latest update of setuptools when installing. Pull request fix rockymeza#5. Improve code readability. Add Travis to my own repository. Restore file permissions. Pull request fixes rebase. Rebase of the pull request fixes in order to clear the code and to solve build issues.
Erf-
added a commit
to Erf-/wifi
that referenced
this pull request
Aug 4, 2015
Add sudo args to terminal calls. modified : tests/test_parsing.py modified : tests/test_scan.py modified : tests/test_schemes.py removed : wifi/dummydata.py modified : wifi/scheme.py Pull request fix #1. modifié : tests/test_scan.py modifié : tests/test_schemes.py Pull request fix #2. modifié: tests/test_scan.py modifié: tests/test_schemes.py Pull request fix rockymeza#3. modifié: setup.py Add 'mock' to the requires. Pull request fix rockymeza#4. modifié: .travis.yml Demand for latest update of setuptools when installing. Pull request fix rockymeza#5. Improve code readability. Add Travis to my own repository. Restore file permissions. Pull request fixes rebase. Rebase of the pull request fixes in order to clear the code and to solve build issues.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
wifi connect -a <search>
Connects to a network without storing it in the config file
Still requires a
interfaces(5) setting to make ifup aware of wlan0. So we may have to add back
wifi init