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

hfreyther/master-next
Henning Heinold 9 years ago committed by Holger Hans Peter Freyther
parent 4a9cc7acdb
commit 72ce4c5203

@ -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