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>
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>
We no longer need to keep entire scripts in init program (i.e. saving space)
and reduce the code and complexity of the init program.
The runsvc tool can later be extended to do more complex child setup, such
as configuring namespaces or seccomp without adding complexity or memory
footprint to init.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
- Common function for splitting string into argument vector
- Preprocess & split command lines while parsing the service file
- Specify "before" and "after" dependencies in a single line
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>