aboutsummaryrefslogtreecommitdiff
path: root/util-linux/freeramdisk.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-11-23 11:46:32 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2016-11-23 11:46:32 +0100
commitdd898c9f3388fca1d7339a45150fbb7406de0971 (patch)
treef9f498c9d86c26bd208acc687c5f29b451927ce3 /util-linux/freeramdisk.c
parente5dd71f94f8691c41382b89de35088695cca34b9 (diff)
downloadbusybox-w32-dd898c9f3388fca1d7339a45150fbb7406de0971.tar.gz
busybox-w32-dd898c9f3388fca1d7339a45150fbb7406de0971.tar.bz2
busybox-w32-dd898c9f3388fca1d7339a45150fbb7406de0971.zip
Convert all util-linux/* applets to "new style" applet definitions
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/freeramdisk.c')
-rw-r--r--util-linux/freeramdisk.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/util-linux/freeramdisk.c b/util-linux/freeramdisk.c
index a89ae1a39..8bc2c443b 100644
--- a/util-linux/freeramdisk.c
+++ b/util-linux/freeramdisk.c
@@ -8,6 +8,36 @@
8 * 8 *
9 * Licensed under GPLv2, see file LICENSE in this source tree. 9 * Licensed under GPLv2, see file LICENSE in this source tree.
10 */ 10 */
11//config:config FDFLUSH
12//config: bool "fdflush"
13//config: default y
14//config: select PLATFORM_LINUX
15//config: help
16//config: fdflush is only needed when changing media on slightly-broken
17//config: removable media drives. It is used to make Linux believe that a
18//config: hardware disk-change switch has been actuated, which causes Linux to
19//config: forget anything it has cached from the previous media. If you have
20//config: such a slightly-broken drive, you will need to run fdflush every time
21//config: you change a disk. Most people have working hardware and can safely
22//config: leave this disabled.
23//config:
24//config:config FREERAMDISK
25//config: bool "freeramdisk"
26//config: default y
27//config: select PLATFORM_LINUX
28//config: help
29//config: Linux allows you to create ramdisks. This utility allows you to
30//config: delete them and completely free all memory that was used for the
31//config: ramdisk. For example, if you boot Linux into a ramdisk and later
32//config: pivot_root, you may want to free the memory that is allocated to the
33//config: ramdisk. If you have no use for freeing memory from a ramdisk, leave
34//config: this disabled.
35
36//applet:IF_FDFLUSH(APPLET_ODDNAME(fdflush, freeramdisk, BB_DIR_BIN, BB_SUID_DROP, fdflush))
37//applet:IF_FREERAMDISK(APPLET(freeramdisk, BB_DIR_SBIN, BB_SUID_DROP))
38
39//kbuild:lib-$(CONFIG_FDFLUSH) += freeramdisk.o
40//kbuild:lib-$(CONFIG_FREERAMDISK) += freeramdisk.o
11 41
12//usage:#define freeramdisk_trivial_usage 42//usage:#define freeramdisk_trivial_usage
13//usage: "DEVICE" 43//usage: "DEVICE"