alpine-zdt-images/scripts/setup-ami.d/eth-eni-setup
Jake Buchholz 24bf01621f Fix assembly of /etc/network/interfaces
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
2020-11-15 20:31:36 -08:00

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 "$?"
}