How to make a rule when 'not' on your home network

Skip to first unread message


Jun 26, 2011, 4:14:41 PM6/26/11
to MarcoPolo Discussion

I have a made a few contexts (home, battery, ac, away). home, battery
and ac works fine with a wifi (sid) and power rule. I am trying to
make the away rule for when i'm not connected to my local wifi.

Is there a good way to do this?

The reason i want this is because when i have mounted smb windows
shares they are inaccessible and cannot be disconnected if you go to
sleep or connect to a different wifi network. when you connect back to
the home wifi network, you cannot disconnect or reconnect without
rebooting (#applefail).

i am trying to stop all of this by unmounting the share either when
the laptop goes to sleep or connects to a wifi network other than


this is an amazing app btw


Jun 27, 2011, 12:24:19 AM6/27/11
to MarcoPolo Discussion
Hi, I had the exact same problem with network shares and I fixed it
but actually not with MarcoPolo.

As far as triggering my "Traveling" context, I use a "NetworkLink"
rule. It monitors the Ethernet link (you can also select Firewire link
or any other network interface on your computer) and when it is
inactive, it triggers the Traveling context.
Then to switch to my home or work contexts, I just set the confidence
for those WiFi SSID rules higher than the NetworkLink inactive rule
and it will switch nicely whenever you leave the local wifi.

However, like you, I decided that I really wanted to unmount to happen
immediately when I put the laptop to sleep, not when I opened it in a
new location and let MarcoPolo activate a script (since by that time
often my network Shares would be inaccessible)
I now use another great program called sleepwatcher, which you can
find here:

It will run whatever script you want immediately when you put the
laptop to sleep, so now when I close the lid, the shares disconnect
automatically. You can also write scripts to perform on wake (to
reconnect to the share, for example).

Hope that helps

Reply all
Reply to author
0 new messages