1dfd4b3e44
This reverts commit 201c9e8527
.
This depended on the revert for one-at-a-time.
Change-Id: I05f1f85b8f13a1eea3d5e4b144ff92e0e791bdac
14 lines
579 B
Bash
Executable file
14 lines
579 B
Bash
Executable file
#!/bin/bash
|
|
set -x
|
|
|
|
SCRIPTDIR=$(dirname $0)
|
|
|
|
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
|
|
install -D -g root -o root -m 0755 ${SCRIPTDIR}/dhcp-all-interfaces.conf /etc/init/dhcp-all-interfaces.conf
|
|
elif [ "$DIB_INIT_SYSTEM" == "systemd" ]; then
|
|
install -D -g root -o root -m 0755 ${SCRIPTDIR}/dhcp-all-interfaces.service /usr/lib/systemd/system/dhcp-all-interfaces.service
|
|
systemctl enable dhcp-all-interfaces.service
|
|
fi
|