Merge "elements: Drop unneeded DIB_INIT_SYSTEM usage"
This commit is contained in:
commit
ef1effd202
2 changed files with 0 additions and 2 deletions
|
@ -13,7 +13,6 @@ if [ "$DISTRO_NAME" != "gentoo" ]; then
|
|||
install -D -g root -o root -m 0755 ${SCRIPTDIR}/dhcp-all-interfaces.sh /usr/local/sbin/dhcp-all-interfaces.sh
|
||||
fi
|
||||
|
||||
DIB_INIT_SYSTEM=$(dib-init-system)
|
||||
if [ "$DIB_INIT_SYSTEM" == "upstart" ]; then
|
||||
if [ -e "/etc/redhat-release" ] ; then
|
||||
# the init system is upstart but networking is using sysv compatabiliy (i.e. Centos/RHEL 6)
|
||||
|
|
|
@ -8,7 +8,6 @@ set -o pipefail
|
|||
|
||||
SCRIPTDIR=$(dirname $0)
|
||||
|
||||
DIB_INIT_SYSTEM=$(dib-init-system)
|
||||
if [ "$DIB_INIT_SYSTEM" == "upstart" ]; then
|
||||
install -m 0644 -o root -g root ${SCRIPTDIR}/ttySx.conf /etc/init/ttySx.conf
|
||||
elif [ "$DIB_INIT_SYSTEM" == "systemd" ]; then
|
||||
|
|
Loading…
Reference in a new issue