mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-25 20:26:34 +00:00
package/openrc: remove keymaps units if kbd package is not selected
keymaps and save-keymaps require kbd_mode and dumpkeys, respectively, so remove them if the kbd package is not selected (e.g. devices with serial console, only). Signed-off-by: Carlos Santos <unixmania@gmail.com> Tested-by: Adam Duskett <aduskett@gmail.com> [yann.morin.1998@free.fr: - expand to three commands to match the existing hook ] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
parent
03cb3f61a0
commit
0acd05423d
@ -39,6 +39,18 @@ define OPENRC_INSTALL_TARGET_CMDS
|
|||||||
$(TARGET_DIR)/etc/init.d/sysv-rcs
|
$(TARGET_DIR)/etc/init.d/sysv-rcs
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_KBD),)
|
||||||
|
# keymaps and save-keymaps require kbd_mode and dumpkeys, respectively, so
|
||||||
|
# remove them if the kbd package is not selected (e.g. devices with serial
|
||||||
|
# console, only).
|
||||||
|
define OPENRC_NO_KBD
|
||||||
|
$(RM) $(TARGET_DIR)/etc/runlevels/boot/{keymaps,save-keymaps}
|
||||||
|
$(RM) $(TARGET_DIR)/etc/init.d/{keymaps,save-keymaps}
|
||||||
|
$(RM) $(TARGET_DIR)/etc/conf.d/keymaps
|
||||||
|
endef
|
||||||
|
OPENRC_POST_INSTALL_TARGET_HOOKS += OPENRC_NO_KBD
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_NETIFRC),y)
|
ifeq ($(BR2_PACKAGE_NETIFRC),y)
|
||||||
# netifrc replaces network, staticroute and loopback services which are
|
# netifrc replaces network, staticroute and loopback services which are
|
||||||
# installed by openrc
|
# installed by openrc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user