diff --git a/package/openrc/openrc.mk b/package/openrc/openrc.mk index 908b44190a..e3f51d45d1 100644 --- a/package/openrc/openrc.mk +++ b/package/openrc/openrc.mk @@ -20,6 +20,12 @@ OPENRC_CONF_OPTS = \ -Drootprefix=/ \ -Dbranding="\"Buildroot $(BR2_VERSION_FULL)\"" +ifeq ($(BR2_PACKAGE_BASH_COMPLETION),y) +OPENRC_CONF_OPTS += -Dbash-completions=true +else +OPENRC_CONF_OPTS += -Dbash-completions=false +endif + ifeq ($(BR2_PACKAGE_LIBSELINUX),y) OPENRC_CONF_OPTS += -Dselinux=enabled OPENRC_DEPENDENCIES += libselinux