revert last two commits. vfork cannot be used in subroutine,
[oweals/busybox.git] / util-linux / Config.in
index b75a09b6ef2dbc7afc0923b72f7cfaf12eb3b20e..833a41ff0c47717982af8b91fb59a57b35b3bb92 100644 (file)
@@ -18,7 +18,7 @@ config DMESG
          wish to enable the 'dmesg' utility.
 
 config FEATURE_DMESG_PRETTY
-       bool "pretty dmesg output"
+       bool "Pretty dmesg output"
        default y
        depends on DMESG
        help
@@ -93,7 +93,7 @@ config FDISK
          'disk slices' that are defined on a hard drive.
 
 config FDISK_SUPPORT_LARGE_DISKS
-       bool "support over 4GB disks"
+       bool "Support over 4GB disks"
        default y
        depends on FDISK
        help
@@ -150,6 +150,17 @@ config FEATURE_FDISK_ADVANCED
          partition, and similarly evil things.  Unless you have a very good
          reason you would be wise to leave this disabled.
 
+config FINDFS
+       bool "findfs"
+       default n
+       select VOLUMEID
+       help
+         This is similar to the findfs program that is part of the e2fsprogs
+         package.  However, the e2fsprogs version only support ext2/3.  This
+         version supports those in addition to FAT, swap, and ReiserFS.
+         WARNING:
+         With all submodules selected, it will add ~8k to busybox.
+
 config FREERAMDISK
        bool "freeramdisk"
        default n
@@ -210,6 +221,23 @@ config HEXDUMP
          The hexdump utility is used to display binary data in a readable
          way that is comparable to the output from most hex editors.
 
+config FEATURE_HEXDUMP_REVERSE
+       bool "Support -R, reverse of 'hexdump -Cv'"
+       default n
+       depends on HEXDUMP
+       help
+         The hexdump utility is used to display binary data in an ascii
+         readable way. This option creates binary data from an ascii input.
+         NB: this option is non-standard. It's unwise to use it in scripts
+         aimed to be portable.
+
+config HD
+       bool "hd"
+       default n
+       select HEXDUMP
+       help
+         hd is an alias to hexdump -C.
+
 config HWCLOCK
        bool "hwclock"
        default n
@@ -269,46 +297,57 @@ config MDEV
        bool "mdev"
        default n
        help
-         mdev is a mini-udev implementation: call it with -s to populate
-         /dev from /sys, then "echo /sbin/mdev > /proc/sys/kernel/hotplug" to
-         have it handle hotplug events afterwards.  Device names are taken
-         from sysfs.
+         mdev is a mini-udev implementation for dynamically creating device
+         nodes in the /dev directory.
+
+         For more information, please see docs/mdev.txt
 
 config FEATURE_MDEV_CONF
        bool "Support /etc/mdev.conf"
        default n
        depends on MDEV
        help
-         The mdev config file contains lines that look like:
+         Add support for the mdev config file to control ownership and
+         permissions of the device nodes.
 
-           hd[a-z][0-9]* 0:3 660
+         For more information, please see docs/mdev.txt
+
+config FEATURE_MDEV_RENAME
+       bool "Support subdirs/symlinks"
+       default n
+       depends on FEATURE_MDEV_CONF
+       help
+         Add support for renaming devices and creating symlinks.
 
-         That's device name (with regex match), uid:gid, and permissions.
+         For more information, please see docs/mdev.txt
 
-         Config file parsing stops on the first matching line.  If no config
-         entry is matched, devices are created with default 0:0 660.  (Make
-         the last line match .* to override this.)
+config FEATURE_MDEV_RENAME_REGEXP
+       bool "Support regular expressions substitutions when renaming device"
+       default n
+       depends on FEATURE_MDEV_RENAME
+       help
+         Add support for regular expressions substitutions when renaming device.
 
 config FEATURE_MDEV_EXEC
        bool "Support command execution at device addition/removal"
        default n
        depends on FEATURE_MDEV_CONF
        help
-         This adds support for an optional field to /etc/mdev.conf, consisting
-         of a special character and a command line to run after creating the
-         corresponding device(s) and before removing, ala:
-
-           hdc root:cdrom 660  *ln -s $MDEV cdrom
+         This adds support for an optional field to /etc/mdev.conf for
+         executing commands when devices are created/removed.
 
-         The $MDEV environment variable is set to the name of the device.
+         For more information, please see docs/mdev.txt
 
-         The special characters and their meanings are:
-           @ Run after creating the device.
-           $ Run before removing the device.
-           * Run both after creating and before removing the device.
+config FEATURE_MDEV_LOAD_FIRMWARE
+       bool "Support loading of firmwares"
+       default n
+       depends on MDEV
+       help
+         Some devices need to load firmware before they can be usable.
 
-         Commands are executed via system() so you need /bin/sh, meaning you
-         probably want to select a default shell in the Shells menu.
+         These devices will request userspace look up the files in
+         /lib/firmware/ and if it exists, send it to the kernel for
+         loading into the hardware.
 
 config MKSWAP
        bool "mkswap"
@@ -324,7 +363,7 @@ config MKSWAP
          the swap space using the 'swapon' utility.
 
 config FEATURE_MKSWAP_V0
-       bool "version 0 support"
+       bool "Version 0 support"
        default n
        depends on MKSWAP
 #      depends on MKSWAP && DEPRECATED
@@ -346,7 +385,7 @@ config MORE
 config FEATURE_USE_TERMIOS
        bool "Use termios to manipulate the screen"
        default y
-       depends on MORE
+       depends on MORE || TOP
        help
          This option allows utilities such as 'more' and 'top' to determine
          the size of the screen.  If you leave this disabled, your utilities
@@ -354,6 +393,216 @@ config FEATURE_USE_TERMIOS
          will be unable to determine the current screen size, and will be
          unable to move the cursor.
 
+config VOLUMEID
+       bool "Routines for detecting label and uuid on common filesystems"
+       default n
+       help
+         TODO
+
+config FEATURE_VOLUMEID_EXT
+       bool "Ext filesystem"
+       default n
+       depends on VOLUMEID
+       help
+         TODO
+
+config FEATURE_VOLUMEID_REISERFS
+       bool "Reiser filesystem"
+       default n
+       depends on VOLUMEID
+       help
+         TODO
+
+config FEATURE_VOLUMEID_FAT
+       bool "fat filesystem"
+       default n
+       depends on VOLUMEID
+       help
+         TODO
+
+config FEATURE_VOLUMEID_HFS
+       bool "hfs filesystem"
+       default n
+       depends on VOLUMEID
+       help
+         TODO
+
+config FEATURE_VOLUMEID_JFS
+       bool "jfs filesystem"
+       default n
+       depends on VOLUMEID
+       help
+         TODO
+
+### config FEATURE_VOLUMEID_UFS
+###    bool "ufs filesystem"
+###    default n
+###    depends on VOLUMEID
+###    help
+###      TODO
+
+config FEATURE_VOLUMEID_XFS
+       bool "xfs filesystem"
+       default n
+       depends on VOLUMEID
+       help
+         TODO
+
+config FEATURE_VOLUMEID_NTFS
+       bool "ntfs filesystem"
+       default n
+       depends on VOLUMEID
+       help
+         TODO
+
+config FEATURE_VOLUMEID_ISO9660
+       bool "iso9660 filesystem"
+       default n
+       depends on VOLUMEID
+       help
+         TODO
+
+config FEATURE_VOLUMEID_UDF
+       bool "udf filesystem"
+       default n
+       depends on VOLUMEID
+       help
+         TODO
+
+config FEATURE_VOLUMEID_LUKS
+       bool "luks filesystem"
+       default n
+       depends on VOLUMEID
+       help
+         TODO
+
+config FEATURE_VOLUMEID_LINUXSWAP
+       bool "linux swap filesystem"
+       default n
+       depends on VOLUMEID
+       help
+         TODO
+
+### config FEATURE_VOLUMEID_LVM
+###    bool "lvm"
+###    default n
+###    depends on VOLUMEID
+###    help
+###      TODO
+
+config FEATURE_VOLUMEID_CRAMFS
+       bool "cramfs filesystem"
+       default n
+       depends on VOLUMEID
+       help
+         TODO
+
+### config FEATURE_VOLUMEID_HPFS
+###    bool "hpfs filesystem"
+###    default n
+###    depends on VOLUMEID
+###    help
+###      TODO
+
+config FEATURE_VOLUMEID_ROMFS
+       bool "romfs filesystem"
+       default n
+       depends on VOLUMEID
+       help
+         TODO
+
+config FEATURE_VOLUMEID_SYSV
+       bool "sysv filesystem"
+       default n
+       depends on VOLUMEID
+       help
+         TODO
+
+### config FEATURE_VOLUMEID_MINIX
+###    bool "minix filesystem"
+###    default n
+###    depends on VOLUMEID
+###    help
+###      TODO
+
+### These only detect partition tables - not used (yet?)
+### config FEATURE_VOLUMEID_MAC
+###    bool "mac filesystem"
+###    default n
+###    depends on VOLUMEID
+###    help
+###      TODO
+###
+### config FEATURE_VOLUMEID_MSDOS
+###    bool "msdos filesystem"
+###    default n
+###    depends on VOLUMEID
+###    help
+###      TODO
+
+config FEATURE_VOLUMEID_OCFS2
+       bool "ocfs2 filesystem"
+       default n
+       depends on VOLUMEID
+       help
+         TODO
+
+### config FEATURE_VOLUMEID_HIGHPOINTRAID
+###    bool "highpoint raid"
+###    default n
+###    depends on VOLUMEID
+###    help
+###      TODO
+
+### config FEATURE_VOLUMEID_ISWRAID
+###    bool "intel raid"
+###    default n
+###    depends on VOLUMEID
+###    help
+###      TODO
+
+### config FEATURE_VOLUMEID_LSIRAID
+###    bool "lsi raid"
+###    default n
+###    depends on VOLUMEID
+###    help
+###      TODO
+
+### config FEATURE_VOLUMEID_VIARAID
+###    bool "via raid"
+###    default n
+###    depends on VOLUMEID
+###    help
+###      TODO
+
+### config FEATURE_VOLUMEID_SILICONRAID
+###    bool "silicon raid"
+###    default n
+###    depends on VOLUMEID
+###    help
+###      TODO
+
+### config FEATURE_VOLUMEID_NVIDIARAID
+###    bool "nvidia raid"
+###    default n
+###    depends on VOLUMEID
+###    help
+###      TODO
+
+### config FEATURE_VOLUMEID_PROMISERAID
+###    bool "promise raid"
+###    default n
+###    depends on VOLUMEID
+###    help
+###      TODO
+
+config FEATURE_VOLUMEID_LINUXRAID
+       bool "linuxraid"
+       default n
+       depends on VOLUMEID
+       help
+         TODO
+
 config MOUNT
        bool "mount"
        default n
@@ -365,11 +614,48 @@ config MOUNT
          NFS filesystems.  Most people using BusyBox will also want to enable
          the 'mount' utility.
 
+config FEATURE_MOUNT_FAKE
+       bool "Support option -f"
+       default n
+       depends on MOUNT
+       help
+         Enable support for faking a file system mount.
+
+config FEATURE_MOUNT_VERBOSE
+       bool "Support option -v"
+       default n
+       depends on MOUNT
+       help
+         Enable multi-level -v[vv...] verbose messages. Useful if you
+         debug mount problems and want to see what is exactly passed
+         to the kernel.
+
+config FEATURE_MOUNT_HELPERS
+       bool "Support mount helpers"
+       default n
+       depends on MOUNT
+       help
+         Enable mounting of virtual file systems via external helpers.
+         E.g. "mount obexfs#-b00.11.22.33.44.55 /mnt" will in effect call
+         "obexfs -b00.11.22.33.44.55 /mnt"
+         Also "mount -t sometype [-o opts] fs /mnt" will try
+         "sometype [-o opts] fs /mnt" if simple mount syscall fails.
+         The idea is to use such virtual filesystems in /etc/fstab.
+
+config FEATURE_MOUNT_LABEL
+       bool "Support specifiying devices by label or UUID"
+       default n
+       depends on MOUNT
+       select VOLUMEID
+       help
+         This allows for specifying a device by label or uuid, rather than by
+         name.  This feature utilizes the same functionality as findfs.
+
 config FEATURE_MOUNT_NFS
        bool "Support mounting NFS file systems"
        default n
        depends on MOUNT
-       depends on FEATURE_HAVE_RPC
+       select FEATURE_HAVE_RPC
        select FEATURE_SYSLOG
        help
          Enable mounting of NFS file systems.
@@ -425,6 +711,18 @@ config READPROFILE
        help
          This allows you to parse /proc/profile for basic profiling.
 
+config RTCWAKE
+       bool "rtcwake"
+       default n
+       help
+         Enter a system sleep state until specified wakeup time.
+
+config SCRIPT
+       bool "script"
+       default n
+       help
+         The script makes typescript of terminal session.
+
 config SETARCH
        bool "setarch"
        default n
@@ -445,6 +743,13 @@ config SWAPONOFF
          space.  If you are not using any swap space, you can leave this
          option disabled.
 
+config FEATURE_SWAPON_PRI
+       bool "Support priority option -p"
+       default n
+       depends on SWAPONOFF
+       help
+         Enable support for setting swap device priority in swapon.
+
 config SWITCH_ROOT
        bool "switch_root"
        default n
@@ -474,7 +779,7 @@ config UMOUNT
          also want to enable 'umount'.
 
 config FEATURE_UMOUNT_ALL
-       bool "umount -a option"
+       bool "Support option -a"
        default n
        depends on UMOUNT
        help
@@ -503,6 +808,7 @@ config FEATURE_MTAB_SUPPORT
        bool "Support for the old /etc/mtab file"
        default n
        depends on MOUNT || UMOUNT
+       select FEATURE_MOUNT_FAKE
        help
          Historically, Unix systems kept track of the currently mounted
          partitions in the file "/etc/mtab".  These days, the kernel exports
@@ -523,4 +829,3 @@ config FEATURE_MTAB_SUPPORT
          your kernel.
 
 endmenu
-