24bf01621f
Include the other interface configs from /etc/network/interfaces.d/ after lo and existing eth*, as was initially intended. Also separate out the assembly code into its own script, as this is done both on boot via eth-eni-setup and on hotplug events by etc-eni-hotplug. Resolves #91
17 lines
254 B
Plaintext
Executable File
17 lines
254 B
Plaintext
Executable File
#!/sbin/openrc-run
|
|
|
|
description="Sets up interfaces for attached Elastic Network Interfaces"
|
|
|
|
depend() {
|
|
before net
|
|
need sysfs
|
|
}
|
|
|
|
start() {
|
|
local iface
|
|
|
|
ebegin "Setting up interfaces for attached ENIs"
|
|
/etc/network/assemble-interfaces
|
|
eend "$?"
|
|
}
|