netcardconfig: switch from ifconfig to ip(8)
authorMichael Prokop <mika@grml.org>
Fri, 25 May 2018 10:03:37 +0000 (12:03 +0200)
committerMichael Prokop <mika@grml.org>
Fri, 25 May 2018 10:03:37 +0000 (12:03 +0200)
commit9792465a8ddd55f49e8994d4abf0a78652992caf
tree02a070795fdb425f4878fce1b3af3c59119a0f1a
parent597006195c1c3d6336fd71c36d27b605ea569f81
netcardconfig: switch from ifconfig to ip(8)

The output of ifconfig changed in recent versions, breaking
parsing the available interfaces. Use that as a good excuse
for switching from ifconfig to ip.

The 's/@.*//' is required to strip the '@ethX0' from the interface
names 'vlan42@eth0', since in /sys/class/net/ only vlan42 exists
as such and not vlan42@eth0.
sbin/netcardconfig