busybox: enable swapon/off by default to make it consistent with mkswap
authorEmil Muratov <gpm@hotplug.ru>
Thu, 1 Nov 2018 18:53:43 +0000 (21:53 +0300)
committerChristian Lamparter <chunkeey@gmail.com>
Sun, 7 Jul 2019 11:02:06 +0000 (13:02 +0200)
  No size increase on busybox binary.
  Since busybox mkswap is already enabled by default it seems reasonable
  to enable swapon/off too. For ex. this obsoletes installing block-mount
  dependency for zram-swap.

Signed-off-by: Emil Muratov <gpm@hotplug.ru>
package/utils/busybox/Config-defaults.in

index e81747b..37238f0 100644 (file)
@@ -1755,16 +1755,16 @@ config BUSYBOX_DEFAULT_SETSID
        default n
 config BUSYBOX_DEFAULT_SWAPON
        bool
-       default n
+       default y
 config BUSYBOX_DEFAULT_FEATURE_SWAPON_DISCARD
        bool
-       default n
+       default y
 config BUSYBOX_DEFAULT_FEATURE_SWAPON_PRI
        bool
-       default n
+       default y
 config BUSYBOX_DEFAULT_SWAPOFF
        bool
-       default n
+       default y
 config BUSYBOX_DEFAULT_FEATURE_SWAPONOFF_LABEL
        bool
        default n