From: Gabe Evans Date: Fri, 1 Jul 2016 21:51:06 +0000 (+0200) Subject: package/systemd: add optional support for rfkill X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ac148898134f5e2554d359e9f02626b1dcb0a863;p=buildroot.git package/systemd: add optional support for rfkill Signed-off-by: Gabe Evans Signed-off-by: Maxime Hadjinlian Signed-off-by: Thomas Petazzoni --- diff --git a/package/systemd/Config.in b/package/systemd/Config.in index 46bbd13f2d..c3a1d004e4 100644 --- a/package/systemd/Config.in +++ b/package/systemd/Config.in @@ -177,6 +177,14 @@ config BR2_PACKAGE_SYSTEMD_BACKLIGHT http://www.freedesktop.org/software/systemd/man/systemd-backlight@.service.html +config BR2_PACKAGE_SYSTEMD_RFKILL + bool "enable rfkill tools" + help + systemd-rfkill is a service that restores the RF kill switch + state at early boot and saves it at shutdown. + + http://www.freedesktop.org/software/systemd/man/systemd-rfkill@.service.html + config BR2_PACKAGE_SYSTEMD_NETWORKD bool "enable network manager" help diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk index 98c97c380e..edd72c109e 100644 --- a/package/systemd/systemd.mk +++ b/package/systemd/systemd.mk @@ -189,6 +189,12 @@ else SYSTEMD_CONF_OPTS += --disable-backlight endif +ifeq ($(BR2_PACKAGE_SYSTEMD_RFKILL),y) +SYSTEMD_CONF_OPTS += --enable-rfkill +else +SYSTEMD_CONF_OPTS += --disable-rfkill +endif + ifeq ($(BR2_PACKAGE_SYSTEMD_NETWORKD),y) SYSTEMD_CONF_OPTS += --enable-networkd define SYSTEMD_INSTALL_RESOLVCONF_HOOK