Enable create bridge service by default

systemd needs to have the service enabled in order
to chain with glean.

Change-Id: Ia79c95c6d384c66131317b4feabe9d578ec572c3
This commit is contained in:
Yolanda Robla Mota 2016-09-08 17:24:43 +02:00
parent 31b904e638
commit c3baf51bea
1 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,26 @@
#!/bin/bash
if [ "${DIB_DEBUG_TRACE:-0}" -gt 0 ]; then
set -x
fi
set -eu
set -o pipefail
case "$DIB_INIT_SYSTEM" in
upstart)
# nothing to do
exit 0
;;
systemd)
systemctl enable create_bridge.service
;;
openrc)
# let dib-init-system's postinstall handle enabling init scripts
exit 0
;;
*)
echo "Unsupported init system"
exit 1
;;
esac