From ac148898134f5e2554d359e9f02626b1dcb0a863 Mon Sep 17 00:00:00 2001 From: Gabe Evans Date: Fri, 1 Jul 2016 23:51:06 +0200 Subject: [PATCH] package/systemd: add optional support for rfkill Signed-off-by: Gabe Evans Signed-off-by: Maxime Hadjinlian Signed-off-by: Thomas Petazzoni --- package/systemd/Config.in | 8 ++++++++ package/systemd/systemd.mk | 6 ++++++ 2 files changed, 14 insertions(+) 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 -- 2.30.2