![](https://seccdn.libravatar.org/avatar/1e2750c4d6486dddc5516d704c78eba3.jpg?s=120&d=mm&r=g)
Hi My wifi gets powered on during boot up. I want that it should get powered up when the ethernet cable is disconnected and get powered off when it is connected. How do I do such a thing. -- Puneit Singh 0091-9350832020 _____________________________ Registered Linux User #431278 Registered Linux Machine #336341
![](https://seccdn.libravatar.org/avatar/ba86f283d614d2cd9b6116140eaddded.jpg?s=120&d=mm&r=g)
Puneit Singh wrote:
Hi My wifi gets powered on during boot up. I want that it should get powered up when the ethernet cable is disconnected and get powered off when it is connected. How do I do such a thing.
You could use profiles, with either the ethernet or wifi NIC enabled. You'd have to manually switch profiles though.
![](https://seccdn.libravatar.org/avatar/0c339773ba5bec4aaa7ed1acf8ee0011.jpg?s=120&d=mm&r=g)
Puneit Singh wrote:
Hi My wifi gets powered on during boot up. I want that it should get powered up when the ethernet cable is disconnected and get powered off when it is connected.
That's exactly how it works for me, no profiles no nothing just
automatically.
ifcfg-wlan0 starts with
BOOTPROTO='dhcp'
BROADCAST=''
ETHTOOL_OPTIONS=''
IFPLUGD_PRIORITY='10'
IPADDR=''
MTU=''
NAME=''
NETMASK=''
NETWORK=''
REMOTE_IPADDR=''
STARTMODE='ifplugd'
USERCONTROL='no'
and ifcfg-eth0 has
BOOTPROTO='dhcp'
BROADCAST=''
ETHTOOL_OPTIONS=''
IFPLUGD_PRIORITY='20'
IPADDR=''
MTU=''
NAME='Hewlett-Packard Company RTL-8139/8139C/8139C+'
NETMASK='255.255.255.0'
NETWORK=''
REMOTE_IPADDR=''
STARTMODE='ifplugd'
UNIQUE='rBUF.qgZcz+lF1Y4'
USERCONTROL='no'
_nm_name='bus-pci-0000:06:06.0'
and it justs works.
--
Dave Cotton
![](https://seccdn.libravatar.org/avatar/3ebc2579514b4cb8f7fe9a323fb36357.jpg?s=120&d=mm&r=g)
On Fri, September 29, 2006 9:06 am, Dave Cotton wrote:
Puneit Singh wrote:
Hi My wifi gets powered on during boot up. I want that it should get powered up when the ethernet cable is disconnected and get powered off when it is connected.
That's exactly how it works for me, no profiles no nothing just automatically.
I can't say if the wifi is powered or not, since I have no visual indicators. I can say that when I plug in the cable I get lan through that, then when I unplug, my wifi picks up the local signal and connects. That's on my Dell laptop. I'm not sure at this moment about my Gateway laptop. -- Kai Ponte www.perfectreign.com || www.4thedadz.com remember - a turn signal is a statement, not a request
participants (4)
-
Dave Cotton
-
James Knott
-
PerfectReign
-
Puneit Singh