43b70ce224
Since we are using bash syntax in some of the element fragments, we should make sure we use bash for all of them, so that things don't break on systems where /bin/sh != /bin/bash. Change-Id: If2f043c57aa4e1492b7f9839213ef6123f683612
17 lines
576 B
Bash
Executable File
17 lines
576 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -x
|
|
|
|
# Prepare the target system for regenerating /etc/network/interfaces
|
|
# on its first boot.
|
|
|
|
SCRIPTDIR=$(dirname $0)
|
|
|
|
# Currently only installed on Debian-derived distributions
|
|
# Installing these on Fedora causes problems with os-svc-daemon
|
|
# https://bugs.launchpad.net/tripleo/+bug/1239880
|
|
if [ -d /etc/init ] ; then
|
|
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.conf /etc/init/dhcp-all-interfaces.conf
|
|
fi
|