package/systemd: add optional support for rfkill
authorGabe Evans <gabe@hashrabbit.co>
Fri, 1 Jul 2016 21:51:06 +0000 (23:51 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 2 Jul 2016 10:35:16 +0000 (12:35 +0200)
Signed-off-by: Gabe Evans <gabe@hashrabbit.co>
Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/systemd/Config.in
package/systemd/systemd.mk

index 46bbd13f2d1d50f4db741f2103ffa7323423672b..c3a1d004e463ce54da8270f3b97f694f1325df1a 100644 (file)
@@ -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
index 98c97c380ed168b9b6fca6822123f172429796fd..edd72c109e0b15c15b27f13effbce4ed782b986b 100644 (file)
@@ -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