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

Adhoc #3

Merged
merged 3 commits into from
Dec 26, 2012
Merged

Adhoc #3

merged 3 commits into from
Dec 26, 2012

Conversation

gavinwahl
Copy link
Collaborator

wifi connect -a <search>

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. So we may have to add back wifi init

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.
@rockymeza
Copy link
Owner

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 connect -a?

@rockymeza
Copy link
Owner

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):
    ...

@gavinwahl gavinwahl merged commit abc03fa into master Dec 26, 2012
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants