mirror of
https://github.com/pygos/init.git
synced 2024-11-25 12:30:42 +01:00
0ded476534
Add a new service that runs a small helper script that applies a consistent, deterministic naming pattern to all interfaces, based on their mac address. A configuration file with wild card pattern matching can be used for determining names. By default, this is disabled. Also, this script is Linux specific. Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
13 lines
371 B
Text
13 lines
371 B
Text
#
|
|
# Interface renaming rules
|
|
#
|
|
# Format: NAME,MAC,NEWNAME
|
|
#
|
|
# NAME and MAC are shell glob patterns. Both must match for a rule to apply.
|
|
# The first matching rule is chosen (top to bottom).
|
|
#
|
|
# Interfaces with the same NEWNAME are sorted by MAC and have a running
|
|
# index appended to their new name.
|
|
#
|
|
# Example: rename all ethernet interfaces to "port<X>"
|
|
# eth*,*,port
|