Rename generate-interfaces-file.sh...

Rename generate-interfaces-file.sh to dhcp-all-interfaces.sh
so that it is easier to find/remember in the $PATH on a deployed
image.

Also, on some distros the script actually generates many files
so the previous name was a bit confusing.

Change-Id: I7152fa7c28e8ade251311da2cd5f75972423b66c
This commit is contained in:
Dan Prince 2014-01-21 16:10:43 -05:00
parent f58f859303
commit 5da1f1324b
5 changed files with 5 additions and 5 deletions

View File

@ -6,6 +6,6 @@ to know ahead of time which one is which, so we will simply run a
DHCP client on all interfaces with real MAC addresses (except lo) that
are visible on the first boot.
The script /usr/local/sbin/generate-interfaces-file.sh will be called
The script /usr/local/sbin/dhcp-all-interfaces.sh will be called
early in each boot and will scan available network interfaces and
ensure they are configured properly before networking services are started.

View File

@ -3,7 +3,7 @@ set -x
SCRIPTDIR=$(dirname $0)
install -D -g root -o root -m 0755 ${SCRIPTDIR}/generate-interfaces-file.sh /usr/local/sbin/generate-interfaces-file.sh
install -D -g root -o root -m 0755 ${SCRIPTDIR}/dhcp-all-interfaces.sh /usr/local/sbin/dhcp-all-interfaces.sh
DIB_INIT_SYSTEM=$(dib-init-system)
if [ "$DIB_INIT_SYSTEM" == "upstart" ]; then

View File

@ -1,4 +1,4 @@
# Call a script to generate an /etc/network/interfaces file to DHCP all available interfaces
# Call a script to generate a /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"
@ -8,4 +8,4 @@ instance $INTERFACE
task
exec /usr/local/sbin/generate-interfaces-file.sh
exec /usr/local/sbin/dhcp-all-interfaces.sh

View File

@ -6,7 +6,7 @@ Before=network.service
[Service]
Type=oneshot
ExecStart=/usr/local/sbin/generate-interfaces-file.sh
ExecStart=/usr/local/sbin/dhcp-all-interfaces.sh
RemainAfterExit=yes
[Install]