net-lib: add configured_ifaces()
authorWill Woods <wwoods@redhat.com>
Thu, 13 Sep 2012 14:52:33 +0000 (10:52 -0400)
committerHarald Hoyer <harald@redhat.com>
Thu, 13 Jun 2013 12:07:17 +0000 (14:07 +0200)
commit4ef0e2d92acf7d5ba0b2bbebf210cfaea8b23a39
tree08316f03ceac8cf92c179c9d55d3bb5cd94baf76
parentbd0f2c034a58f555d92e266552ce857e442eef0e
net-lib: add configured_ifaces()

configured_ifaces is a function that returns the names of each interface
that the user wanted configured.

Currently, this is accomplished by reading the list from
/tmp/net.ifaces. But if we want to allow the user to specify an
interface by its MAC address or IP or something, we need a function that
will read the cache and convert the MACs etc. to names.

(Obviously this conversion only works once udev starts, so it will warn
you if you try it too early.)
modules.d/40network/net-lib.sh