diskimage-builder/elements/dhcp-all-interfaces/install.d/dhcp-all-interfaces.conf
Chris Jones a6b794fffc Add element to run DHCP on all network interfaces.
Ensures that all network interfaces are present in
/etc/network/interfaces. Any interface not already defined there
will be added and configured for DHCP.

Change-Id: I27e0902e62804e8d719acd7288109bd0e294fd16
2013-04-02 10:28:18 +01:00

11 lines
321 B
Plaintext

# Call a script to generate an /etc/network/interfaces file to DHCP all available interfaces
# Then remove this config file so the script is never run again
description "DHCP any connected, but unconfigured network interfaces"
start on starting network-interface
task
exec /usr/local/sbin/generate-interfaces-file.sh