View Single Post
  #2   (View Single Post)  
Old 18th January 2012
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by tolstoi View Post
I'd like to know if there is a way that only the connected nic begins its service.
The kernel loads drivers for the devices it detects upon boot. Drivers can be permanently disabled, but this isn't what you want.

Interfaces are configured through either ifconfig(8) or ifconfig.if(5). If you are wanting to selectively start (configure) your wireless interface based upon whether your wired interface is active (I'm guessing from upon boot...), you will need to write a script which parses the output of ifconfig(8) to determine whether the wired interface is up or down, & depending upon this, pass the appropriate information to ifconfig(8) to configure the wireless interface.

I believe all the information you need is in the manpages cited. Now all you need is to write the script itself.
Reply With Quote