Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make ifconfig parameters optional #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Clement-TS
Copy link

When you just want to up an interface, you don't need to give any networ/broadcast/mask. Usually in your console you just do ifconfig wlan0 up
That's what I'm suggesting here

@Clement-TS
Copy link
Author

@bakerface do you still maintain this project? Is my proposal unuseful?

@@ -180,6 +180,39 @@ describe('ifconfig', function() {
});
})

it('should bring up the interface without broadcast nor subnet', function(done) {
ifconfig.exec = function(command, callback) {
should(command).eql('ifconfig wlan0 192.168.10.1 up');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

may this address be used from ENV var?

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

Successfully merging this pull request may close these issues.

2 participants