aboutsummaryrefslogtreecommitdiff
path: root/util-linux/swaponoff.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/swaponoff.c')
-rw-r--r--util-linux/swaponoff.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/util-linux/swaponoff.c b/util-linux/swaponoff.c
index bda0687d6..f432ce180 100644
--- a/util-linux/swaponoff.c
+++ b/util-linux/swaponoff.c
@@ -37,6 +37,15 @@
37//config: bool "swapoff (4.3 kb)" 37//config: bool "swapoff (4.3 kb)"
38//config: default y 38//config: default y
39//config: select PLATFORM_LINUX 39//config: select PLATFORM_LINUX
40//config:
41//config:config FEATURE_SWAPONOFF_LABEL
42//config: bool "Support specifying devices by label or UUID"
43//config: default y
44//config: depends on SWAPON || SWAPOFF
45//config: select VOLUMEID
46//config: help
47//config: This allows for specifying a device by label or uuid, rather than by
48//config: name. This feature utilizes the same functionality as blkid/findfs.
40 49
41// APPLET_ODDNAME:name main location suid_type help 50// APPLET_ODDNAME:name main location suid_type help
42//applet:IF_SWAPON( APPLET_ODDNAME(swapon, swap_on_off, BB_DIR_SBIN, BB_SUID_DROP, swapon)) 51//applet:IF_SWAPON( APPLET_ODDNAME(swapon, swap_on_off, BB_DIR_SBIN, BB_SUID_DROP, swapon))
@@ -72,7 +81,7 @@
72# include <sys/swap.h> 81# include <sys/swap.h>
73#endif 82#endif
74 83
75#if ENABLE_FEATURE_MOUNT_LABEL 84#if ENABLE_FEATURE_SWAPONOFF_LABEL
76# include "volume_id.h" 85# include "volume_id.h"
77#else 86#else
78# define resolve_mount_spec(fsname) ((void)0) 87# define resolve_mount_spec(fsname) ((void)0)