sysmocom-nitb-image: enable nitb for sysvinit or systemd
This commit is contained in:
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…
Reference in New Issue