]> git.ipfire.org Git - thirdparty/systemd.git/commit - Makefile.am
udev: link-config - move naming policy from udev rules
authorTom Gundersen <teg@jklm.no>
Sun, 27 Oct 2013 23:19:59 +0000 (00:19 +0100)
committerTom Gundersen <teg@jklm.no>
Mon, 28 Oct 2013 00:18:04 +0000 (01:18 +0100)
commitdaeb71a36a98834664e4d95773a3629b746f4db8
tree5b8aeab2278a26dace26feb13629d22e52c89500
parent2a73e0d39a9bec82c3800071e375d27164727e71
udev: link-config - move naming policy from udev rules

This introduces a new key NamePolicy, which takes an ordered list of naming
policies. The first successful one is applide. If all fail the value of Name
(if any) is used.

The possible policies are 'onboard', 'slot', 'path' and 'mac'.

This patch introduces a default link file, which replaces the equivalent udev
rule.
Makefile.am
links/99-default.link [new file with mode: 0644]
rules/80-net-name-slot.rules [deleted file]
src/shared/util.c
src/udev/net/link-config-gperf.gperf
src/udev/net/link-config.c
src/udev/net/link-config.h