The Simple Things in Life
Xen
list at xenhideout.nl
Thu Jul 21 13:14:28 UTC 2016
Ralf Mardorf schreef op 21-07-2016 11:57:
> On Thu, 21 Jul 2016 03:00:47 +0000, Xen wrote:
>> I still don't like seeing this enp4s0 (under the previous motherboard
>> it was enp3s0, go figure) whenever I look under the hood and detest it
>> to the bone.
>
> Hi,
>
> this number already changes for my mobo's only network device, if I
> remove or add PCI sound cards. I solved it by using a wild card.
>
> $ grep -A2 "dhcpcd_on()" /usr/local/sbin/alice-dhcp
> dhcpcd_on() {
> echo ; dhcpcd $(basename $(ls -d /sys/class/net/enp?s0)) ; echo
> }
I've also used that strategy somewhere; to just list all devices and
take the head -1 of that.
Coincidentally, that is like the exact equivalent of what I was
proposing, or what I proposed.
This "ls /sys/class/net/enp?s0 | sort" (as a manner of speaking)
produces that condensed list I was talking about. You merely need to
replace each item on the list with ethX where X is the sequence number
in the list (index, order) and you've got the scheme I wanted.
You can't change installed PCI devices on the fly (hopefully, although
they mentioned Thunderbolt which would complicate things) (but I think
Thunderbolt is on a different naming scheme?) so this order and this
list should always stay fixed during the operation of the machine.
But then Martin Pitt would know (probably ;-)) he or she is just not
telling us ;-).
At least the systemd-devel discussion was not any form of vileness, it
was a serious debate in that sense with disregard of some people that
tried to turn it into dogfighting, but those were not named person and
unnamed kernel developer, which were rather respectful both and good
partners in any sense in a debate at all.
So thank you Martin Pitt for your cooperation there but I just did not
like what the kernel dev was doing which was throwing up roadblocks
which have no real merit in reality and I am just a 1000% sure of that.
I am a designer and developer myself. I know when something is bullshit
okay.
You can smell it from a mile away if you have designed enough software
already.
More information about the Ubuntu-devel-discuss
mailing list