From 021fa432447bd7b447ca39738040698db39d751b Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Mon, 5 Nov 2018 15:28:18 +0100 Subject: Initial commit Signed-off-by: David Oberhollenzer --- netcfg/ifrename | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 netcfg/ifrename (limited to 'netcfg/ifrename') diff --git a/netcfg/ifrename b/netcfg/ifrename new file mode 100644 index 0000000..08909fa --- /dev/null +++ b/netcfg/ifrename @@ -0,0 +1,13 @@ +# +# 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" +# eth*,*,port -- cgit v1.2.3