mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 14:16:31 +00:00
package/systemd: check BR2_TARGET_GENERIC_GETTY
Do not create a [serial-]getty link if BR2_TARGET_GENERIC_GETTY is not set. Might be useful for custom setups (rootfs overlay). [Peter: use BR2_TARGET_GENERIC_GETTY_PORT to match the code below] Signed-off-by: André Erdmann <dywi@mailerd.de> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
c95bf441a6
commit
2a8ceecd80
@ -187,6 +187,7 @@ define SYSTEMD_DISABLE_SERVICE_TTY1
|
|||||||
rm -f $(TARGET_DIR)/etc/systemd/system/getty.target.wants/getty@tty1.service
|
rm -f $(TARGET_DIR)/etc/systemd/system/getty.target.wants/getty@tty1.service
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
ifneq ($(call qstrip,$(BR2_TARGET_GENERIC_GETTY_PORT)),)
|
||||||
# systemd needs getty.service for VTs and serial-getty.service for serial ttys
|
# systemd needs getty.service for VTs and serial-getty.service for serial ttys
|
||||||
define SYSTEMD_INSTALL_SERVICE_TTY
|
define SYSTEMD_INSTALL_SERVICE_TTY
|
||||||
if echo $(BR2_TARGET_GENERIC_GETTY_PORT) | egrep -q 'tty[0-9]*$$'; \
|
if echo $(BR2_TARGET_GENERIC_GETTY_PORT) | egrep -q 'tty[0-9]*$$'; \
|
||||||
@ -198,6 +199,7 @@ define SYSTEMD_INSTALL_SERVICE_TTY
|
|||||||
ln -fs ../../../../lib/systemd/system/$${SERVICE}@.service \
|
ln -fs ../../../../lib/systemd/system/$${SERVICE}@.service \
|
||||||
$(TARGET_DIR)/etc/systemd/system/getty.target.wants/$${SERVICE}@$(BR2_TARGET_GENERIC_GETTY_PORT).service
|
$(TARGET_DIR)/etc/systemd/system/getty.target.wants/$${SERVICE}@$(BR2_TARGET_GENERIC_GETTY_PORT).service
|
||||||
endef
|
endef
|
||||||
|
endif
|
||||||
|
|
||||||
define SYSTEMD_INSTALL_INIT_SYSTEMD
|
define SYSTEMD_INSTALL_INIT_SYSTEMD
|
||||||
$(SYSTEMD_DISABLE_SERVICE_TTY1)
|
$(SYSTEMD_DISABLE_SERVICE_TTY1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user