Re: Activating/deactivating a network interface
Re: Activating/deactivating a network interface
- Subject: Re: Activating/deactivating a network interface
- From: Jérome Foucher <email@hidden>
- Date: Fri, 6 Feb 2004 16:52:47 +0100
On 6 fivr. 04, at 16:40, Justin Walker wrote:
Since you can use 'ifconfig', it appears you are using shell scripts
of some sort. You can also try 'scselect', which is a command-line
tool that lets you switch 'locations'. Define a "disconnected"
location that disables the ports you want turned off. Then you can
use scselect to switch between your "active" location and
"disconnected". Using 'scselect' will keep things working as you
expect, since it is hooked into the same frameworks that MoreSCF would
use.
A caveat: 'scselect' uses numerical keys to specify locations, so you
have to be a bit careful in your script. 'scselect' with no arguments
lists the choices, with numerical keys.
That's indeed a good solution.
Thanks
Jerome
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.