28190d5954
Previously dhcp-all-interfaces was only blocking the first network interface to come up. We add an instance stanza to make it run one instance of generate-interfaces-file per interface. We then use flock to serialize runs of generate-interfaces-file. Fixes bug #1233577 Change-Id: Ib16bed6b37ce0789e315ef57e05ac561470a6f2a
12 lines
341 B
Plaintext
12 lines
341 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
|
|
instance $INTERFACE
|
|
|
|
task
|
|
|
|
exec /usr/local/sbin/generate-interfaces-file.sh
|