From: | Samuraiii <samuraiii@×××××.cz> | ||
---|---|---|---|
To: | gentoo-user@l.g.o | ||
Subject: | [gentoo-user] «-»: [gentoo-user] Wifi autodisable on lan | ||
Date: | Sat, 07 Apr 2012 16:42:38 | ||
Message-Id: | 4F806E0C.3050200@volny.cz | ||
In Reply to: | Re: [gentoo-user] Wifi autodisable on lan by Michael Mol |
1 | I've come across this |
2 | http://johanlouwers.blogspot.com/2011/03/linux-check-interface-status.html |
3 | |
4 | But this isn't helping me: |
5 | right now I'm on wifi only but when I run ifconfig I get this for eth0 |
6 | (my lan card) |
7 | |
8 | eth0 Link encap:Ethernet HWaddr 00:41:70:52:5c:59 |
9 | UP BROADCAST MULTICAST MTU:1500 Metric:1 |
10 | RX packets:0 errors:0 dropped:0 overruns:0 frame:0 |
11 | TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 |
12 | collisions:0 txqueuelen:1000 |
13 | RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) |
14 | Interrupt:46 Base address:0x2000 |
15 | |
16 | so that grep UP will return 1 even if cable isn't plugged in. |
17 | |
18 | But i found ethtool which does what I need so thank you for your help. |
19 | S |
20 | |
21 | |
22 | |
23 | On 2012-04-07 01:08, Michael Mol wrote: |
24 | > |
25 | > Ifconfig or iproute2 |
26 | > |
27 | > On Apr 6, 2012 6:51 PM, "Samuraiii" <samuraiii@×××××.cz |
28 | > <mailto:samuraiii@×××××.cz>> wrote: |
29 | > |
30 | > Hello, |
31 | > |
32 | > I'm trying to autodisable wifi when lan cable is plugged in. |
33 | > I "found" rfkill ebuild which look like something I need but I'm |
34 | > clueless where to get state of the ethernet card. |
35 | > |
36 | > Is there someone who can help me slove this? |
37 | > Thank you for help in advance |
38 | > S. |
39 | > |
40 | > |
41 | > -- |
42 | > Samuraiii |
43 | > e-mail: samuraiii@×××××.cz <mailto:samuraiii@×××××.cz> |
44 | > GnuPG key ID: 0x80C752EA |
45 | > <http://pgp.mit.edu:11371/pks/lookup?search=0x80C752EA&op=vindex&fingerprint=on&exact=on> |
46 | > (obtainable on http://pgp.mit.edu) |
47 | > Full copy of public timestamp block <http://publictimestamp.org> |
48 | > signatures id-14492 (from 2012-04-06 21:00:09) is included in |
49 | > header of html. |
50 | > |
51 | |
52 | -- |
53 | Samuraiii |
54 | e-mail: samuraiii@×××××.cz <mailto:samuraiii@×××××.cz> |
55 | GnuPG key ID: 0x80C752EA |
56 | <http://pgp.mit.edu:11371/pks/lookup?search=0x80C752EA&op=vindex&fingerprint=on&exact=on> |
57 | (obtainable on http://pgp.mit.edu) |
58 | Full copy of public timestamp block <http://publictimestamp.org> |
59 | signatures id-14498 (from 2012-04-07 15:00:07) is included in header of |
60 | html. |
File name | MIME type |
---|---|
bg-linky.gif | image/gif |