Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

Prey will not enable Airport in OSX 10.6 #19

Closed
jormaster3k opened this issue Jul 25, 2010 · 2 comments
Closed

Prey will not enable Airport in OSX 10.6 #19

jormaster3k opened this issue Jul 25, 2010 · 2 comments

Comments

@jormaster3k
Copy link

During the auto-connect process, prey is not able to enable airport if it is disabled, which makes it impossible to pull or push any information.

It looks like the function to enable airport in try_to_connect() is

$ networksetup -setairportpower on

This command networksetup returns "The amount of parameters was not correct" as it expects the device name (on my mac, airport is en1) as one of the parameters in order to work successfully.

This line needs to read like:

$ networksetup -setairportpower en1 on

(Although I'm not sure airport is always en1 on all macs)

@drewreece
Copy link
Contributor

It is lines 27 & 28 of prey/platform/mac/functions

Changing them to...
networksetup -setairportpower Airport off 2>/dev/null
networksetup -setairportpower Airport on 2>/dev/null
may be more appropriate.

@tomas
Copy link
Contributor

tomas commented Jul 27, 2010

fixed! thanks for the feedback guys.

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

No branches or pull requests

3 participants