Browse Source

sysmocom-nitb-image: enable nitb for sysvinit or systemd

hfreyther/master-next
Henning Heinold 8 years ago
committed by Holger Hans Peter Freyther
parent
commit
72ce4c5203
  1. 6
      recipes-apps/images/sysmocom-nitb-image.bb

6
recipes-apps/images/sysmocom-nitb-image.bb

@ -5,4 +5,8 @@ activate_nitb() {
echo "NO_START=0" > ${IMAGE_ROOTFS}/etc/default/osmo-nitb
}
IMAGE_PREPROCESS_COMMAND += "activate_nitb; "
activate_systemd_nitb() {
ln -sf ${systemd_unitdir}/system/osmo-nitb.service ${IMAGE_ROOTFS}/etc/systemd/system/multi-user.target.wants/
}
IMAGE_PREPROCESS_COMMAND += "${@base_contains('DISTRO_FEATURES','systemd','activate_systemd_nitb','activate_nitb',d)}; "

Loading…
Cancel
Save