net-genrules: accept MAC address for $iface, cleanups
authorWill Woods <wwoods@redhat.com>
Wed, 22 Aug 2012 20:59:16 +0000 (16:59 -0400)
committerHarald Hoyer <harald@redhat.com>
Thu, 13 Jun 2013 12:07:17 +0000 (14:07 +0200)
commit57f257928116a8e614bb1933a9f8fbf9d9c39c52
tree59d8dea6972ec916df4b07317a082b66f6841217
parent215ff169dbf01c6175840c8e69d50b9b960dc1a7
net-genrules: accept MAC address for $iface, cleanups

A MAC address is a unique identifier for a particular network interface.

We can use the MAC to generate udev rules to bring up that interface,
like we currently do with BOOTIF.

This patch allows interfaces to be specified as a MAC address, either
in the usual colon-separated form or the PXE-style dash-separated form.

(The latter is more useful on the commandline, since it allows for
arguments like: "ip=77-77-6f-6f-64-73:dhcp")

This is useful since it's common for a user who is booting a new OS for
the first time to know the MAC of the device, but not know what the
kernel name will be.
modules.d/40network/net-genrules.sh