summaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-04-26 20:34:14 +0200
committerDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-04-27 11:28:46 +0200
commit0ded4765344b6360cf4f030909d5bbe736a1a584 (patch)
treea9f56a14fa1b278f3c58bfe11ef6ed9394253459 /services
parent59731dd69bb4be66c721b3de66fb2ab80bec3e7e (diff)
Add optional script for persistent network interface renaming
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>
Diffstat (limited to 'services')
-rw-r--r--services/Makemodule.am2
-rw-r--r--services/ifrename.in6
2 files changed, 7 insertions, 1 deletions
diff --git a/services/Makemodule.am b/services/Makemodule.am
index 7187aab..5dc8c4c 100644
--- a/services/Makemodule.am
+++ b/services/Makemodule.am
@@ -4,7 +4,7 @@ init_DATA += services/sysctl services/hwclock services/sysinit
init_DATA += services/reboot services/shutdown services/sigkill
init_DATA += services/sigterm services/sync services/devfs
init_DATA += services/sysfs services/procfs services/tmpfs
-init_DATA += services/vfs
+init_DATA += services/vfs services/ifrename
EXTRA_DIST += services/sysinit services/vfs services/agetty services/hostname
EXTRA_DIST += services/hwclock services/loopback services/reboot
diff --git a/services/ifrename.in b/services/ifrename.in
new file mode 100644
index 0000000..7c6e346
--- /dev/null
+++ b/services/ifrename.in
@@ -0,0 +1,6 @@
+description "rename network interfaces"
+type wait
+target boot
+after sysinit
+
+exec "@SCRIPTDIR@/ifrename.sh" \ No newline at end of file