summaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-04-27 22:38:01 +0200
committerDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-04-28 13:52:01 +0200
commita22a212d3abdfbce445228c0cdce39a363cc666b (patch)
treeb5e80c2cb10d1049c9572183c189d6be3944a482 /services
parent0ded4765344b6360cf4f030909d5bbe736a1a584 (diff)
Add service and helper script for static network configuration
After interface renaming is done, perform the following actions: - Configure each interface for which we have a configuration file - Configuration file contains lines that we pass directly to iproute2 - Configure static routing in a similar fashion - Set the configured interfaces up Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
Diffstat (limited to 'services')
-rw-r--r--services/Makemodule.am2
-rw-r--r--services/ifcfg.in6
2 files changed, 7 insertions, 1 deletions
diff --git a/services/Makemodule.am b/services/Makemodule.am
index 5dc8c4c..fa51235 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 services/ifrename
+init_DATA += services/vfs services/ifrename services/ifcfg
EXTRA_DIST += services/sysinit services/vfs services/agetty services/hostname
EXTRA_DIST += services/hwclock services/loopback services/reboot
diff --git a/services/ifcfg.in b/services/ifcfg.in
new file mode 100644
index 0000000..940a289
--- /dev/null
+++ b/services/ifcfg.in
@@ -0,0 +1,6 @@
+description "static network configuration"
+type wait
+target boot
+after sysinit ifrename
+
+exec "@SCRIPTDIR@/ifcfg.sh" \ No newline at end of file