2013-03-05 17:34:19 +00:00
|
|
|
#!/bin/sh -x
|
|
|
|
|
|
|
|
# Prepare the target system for regenerating /etc/network/interfaces
|
|
|
|
# on its first boot.
|
|
|
|
|
|
|
|
SCRIPTDIR=$(dirname $0)
|
|
|
|
|
2013-10-14 22:54:37 +00:00
|
|
|
# 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
|