1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-01-29 01:11:06 +02:00

update busybox to v1.2.1

git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4528 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nico 2006-08-08 10:27:25 +00:00
parent 2f9334da3b
commit 0d3fffa91d
28 changed files with 1609 additions and 1310 deletions

View File

@ -9,13 +9,13 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=busybox PKG_NAME:=busybox
PKG_VERSION:=1.1.3 PKG_VERSION:=1.2.1
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://www.busybox.net/downloads PKG_SOURCE_URL:=http://www.busybox.net/downloads
PKG_MD5SUM:=19a0b475169335f17e421cf644616fe7 PKG_MD5SUM:=362b3dc0f2023ddfda901dc1f1a74391
PKG_CAT:=bzcat PKG_CAT:=bzcat
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk

View File

@ -12,9 +12,26 @@ menu "Busybox Settings"
menu "General Configuration" menu "General Configuration"
config BUSYBOX_CONFIG_NITPICK
bool "See lots more (probably unnecessary) configuration options."
default n
help
Some BusyBox applets have more configuration options than anyone
will ever care about. To avoid drowining people in complexity, most
of the applet features that can be set to a sane default value are
hidden, unless you hit the above switch.
This is better than to telling people to edit the busybox source
code, but not by much.
See http://en.wikipedia.org/wiki/Fibber_McGee_and_Molly#The_Closet
You have been warned.
choice choice
prompt "Buffer allocation policy" prompt "Buffer allocation policy"
default BUSYBOX_CONFIG_FEATURE_BUFFERS_GO_ON_STACK default BUSYBOX_CONFIG_FEATURE_BUFFERS_GO_ON_STACK
depends on BUSYBOX_CONFIG_NITPICK
help help
There are 3 ways BusyBox can handle buffer allocations: There are 3 ways BusyBox can handle buffer allocations:
- Use malloc. This costs code size for the call to xmalloc. - Use malloc. This costs code size for the call to xmalloc.
@ -36,15 +53,39 @@ config BUSYBOX_CONFIG_FEATURE_BUFFERS_GO_IN_BSS
endchoice endchoice
config BUSYBOX_CONFIG_SHOW_USAGE
bool "Show terse applet usage messages"
default y
help
All BusyBox applets will show help messages when invoked with
wrong arguments. You can turn off printing these terse usage
messages if you say no here.
This will save you up to 7k.
config BUSYBOX_CONFIG_FEATURE_VERBOSE_USAGE config BUSYBOX_CONFIG_FEATURE_VERBOSE_USAGE
bool "Show verbose applet usage messages" bool "Show verbose applet usage messages"
default y default y
select BUSYBOX_CONFIG_SHOW_USAGE
help help
All BusyBox applets will show more verbose help messages when All BusyBox applets will show more verbose help messages when
busybox is invoked with --help. This will add a lot of text to the busybox is invoked with --help. This will add a lot of text to the
busybox binary. In the default configuration, this will add about busybox binary. In the default configuration, this will add about
13k, but it can add much more depending on your configuration. 13k, but it can add much more depending on your configuration.
config BUSYBOX_CONFIG_FEATURE_COMPRESS_USAGE
bool "Store applet usage messages in compressed form"
default n
depends on BUSYBOX_CONFIG_SHOW_USAGE && BUSYBOX_CONFIG_NITPICK
help
Store usage messages in compressed form, uncompress them on-the-fly
when <applet> --help is called.
If you have a really tiny busybox with few applets enabled (and
bunzip2 isn't one of them), the overhead of the decompressor might
be noticeable. Also, if you run executables directly from ROM
and have very little memory, this might not be a win. Otherwise,
you probably want this.
config BUSYBOX_CONFIG_FEATURE_INSTALLER config BUSYBOX_CONFIG_FEATURE_INSTALLER
bool "Support --install [-s] to install applet links at runtime" bool "Support --install [-s] to install applet links at runtime"
default n default n
@ -61,25 +102,29 @@ config BUSYBOX_CONFIG_LOCALE_SUPPORT
Enable this if your system has locale support and you would like Enable this if your system has locale support and you would like
busybox to support locale settings. busybox to support locale settings.
config BUSYBOX_CONFIG_FEATURE_DEVFS config BUSYBOX_CONFIG_GETOPT_LONG
bool "Support for devfs" bool
default y default y
help # bool "Enable support for --long-options"
Enable if you want BusyBox to work with devfs. # default n
# help
# Enable this if you want busybox applets to use the gnu --long-option
# style, in addition to single character -a -b -c style options.
config BUSYBOX_CONFIG_FEATURE_DEVPTS config BUSYBOX_CONFIG_FEATURE_DEVPTS
bool "Use the devpts filesystem for Unix98 PTYs" bool "Use the devpts filesystem for Unix98 PTYs"
default y if BUSYBOX_CONFIG_FEATURE_DEVFS default y
help help
Enable if you want BusyBox to use Unix98 PTY support. If enabled, Enable if you want BusyBox to use Unix98 PTY support. If enabled,
busybox will use /dev/ptmx for the master side of the pseudoterminal busybox will use /dev/ptmx for the master side of the pseudoterminal
and /dev/pts/<number> for the slave side. Otherwise, BSD style and /dev/pts/<number> for the slave side. Otherwise, BSD style
/dev/ttyp<number> will be used. To use this option, you should have /dev/ttyp<number> will be used. To use this option, you should have
devpts or devfs mounted. devpts mounted.
config BUSYBOX_CONFIG_FEATURE_CLEAN_UP config BUSYBOX_CONFIG_FEATURE_CLEAN_UP
bool "Clean up all memory before exiting (usually not needed)" bool "Clean up all memory before exiting (usually not needed)"
default n default n
depends on BUSYBOX_CONFIG_NITPICK
help help
As a size optimization, busybox normally exits without explicitly As a size optimization, busybox normally exits without explicitly
freeing dynamically allocated memory or closing files. This saves freeing dynamically allocated memory or closing files. This saves
@ -93,15 +138,25 @@ config BUSYBOX_CONFIG_FEATURE_SUID
bool "Support for SUID/SGID handling" bool "Support for SUID/SGID handling"
default y default y
help help
Support SUID and SGID binaries. With this option you can install the busybox binary belonging
to root with the suid bit set, and it'll and it'll automatically drop
priviledges for applets that don't need root access.
If you're really paranoid and don't want to do this, build two
busybox binaries with different applets in them (and the appropriate
symlinks pointing to each binary), and only set the suid bit on the
one that needs it. The applets currently marked to need the suid bit
are login, passwd, su, ping, traceroute, crontab, dnsd, ipcrm, ipcs,
and vlock.
config BUSYBOX_CONFIG_FEATURE_SUID_CONFIG config BUSYBOX_CONFIG_FEATURE_SUID_CONFIG
bool "Runtime SUID/SGID configuration via /etc/busybox.conf" bool "Runtime SUID/SGID configuration via /etc/busybox.conf"
default n if BUSYBOX_CONFIG_FEATURE_SUID default n if BUSYBOX_CONFIG_FEATURE_SUID
depends on BUSYBOX_CONFIG_FEATURE_SUID depends on BUSYBOX_CONFIG_FEATURE_SUID
help help
Allow the SUID / SGID state of an applet to be determined runtime by Allow the SUID / SGID state of an applet to be determined at runtime
checking /etc/busybox.conf. The format of this file is as follows: by checking /etc/busybox.conf. (This is sort of a poor man's sudo.)
The format of this file is as follows:
<applet> = [Ssx-][Ssx-][x-] (<username>|<uid>).(<groupname>|<gid>) <applet> = [Ssx-][Ssx-][x-] (<username>|<uid>).(<groupname>|<gid>)
@ -141,14 +196,29 @@ config BUSYBOX_CONFIG_SELINUX
Enable support for SELinux in applets ls, ps, and id. Also provide Enable support for SELinux in applets ls, ps, and id. Also provide
the option of compiling in SELinux applets. the option of compiling in SELinux applets.
If you do not have a complete SE Linux Full Userland installed, this If you do not have a complete SELinux userland installed, this stuff
stuff will not compile. Go visit will not compile. Go visit
http://www.nsa.gov/selinux/index.html http://www.nsa.gov/selinux/index.html
to download the necessary stuff to allow busybox to compile with this to download the necessary stuff to allow busybox to compile with
option enabled. this option enabled. Specifially, libselinux 1.28 or better is
directly required by busybox. If the installation is located in a
non-standard directory, provide it by invoking make as follows:
CFLAGS=-I<libselinux-include-path> \
LDFLAGS=-L<libselinux-lib-path> \
make
Most people will leave this set to 'N'. Most people will leave this set to 'N'.
config BUSYBOX_CONFIG_BUSYBOX_EXEC_PATH
string "Path to BusyBox executable"
default "/proc/self/exe"
help
When Busybox applets need to run other busybox applets, BusyBox
sometimes needs to exec() itself. When the /proc filesystem is
mounted, /proc/self/exe always points to the currently running
executable. If you haven't got /proc, set this to wherever you
want to run BusyBox from.
endmenu endmenu
menu 'Build Options' menu 'Build Options'
@ -167,21 +237,18 @@ config BUSYBOX_CONFIG_STATIC
Most people will leave this set to 'N'. Most people will leave this set to 'N'.
# The busybox shared library feature is there so make standalone can produce
# smaller applets. Since make standalone isn't in yet, there's nothing using
# this yet, and so it's disabled.
config BUSYBOX_CONFIG_DISABLE_SHARED
bool
default n
config BUSYBOX_CONFIG_BUILD_LIBBUSYBOX config BUSYBOX_CONFIG_BUILD_LIBBUSYBOX
bool "Build shared libbusybox" bool "Build shared libbusybox"
default n default n
depends on BUSYBOX_CONFIG_DISABLE_SHARED
help help
Build a shared library libbusybox.so which contains all Build a shared library libbusybox.so which contains all
libraries used inside busybox. libraries used inside busybox.
This is an experimental feature intended to support the upcoming
"make standalone" mode. Enabling it against the one big busybox
binary serves no purpose (and increases the size). You should
almost certainly say "no" to this right now.
config BUSYBOX_CONFIG_FEATURE_FULL_LIBBUSYBOX config BUSYBOX_CONFIG_FEATURE_FULL_LIBBUSYBOX
bool "Feature-complete libbusybox" bool "Feature-complete libbusybox"
default n if !CONFIG_FEATURE_SHARED_BUSYBOX default n if !CONFIG_FEATURE_SHARED_BUSYBOX
@ -239,15 +306,6 @@ config BUSYBOX_CROSS_COMPILER_PREFIX
then I would enter '/usr/i386-linux-uclibc/bin/i386-uclibc-' here, then I would enter '/usr/i386-linux-uclibc/bin/i386-uclibc-' here,
which will ensure the correct compiler is used. which will ensure the correct compiler is used.
config BUSYBOX_EXTRA_CFLAGS_OPTIONS
string
default "-Os "
help
Do you want to pass any extra CFLAGS options to the compiler as
you build BusyBox? If so, this is the option for you... For example,
if you want to add some simple compiler switches (like -march=i686),
or check for warnings using -Werror, just those options here.
config BUSYBOX_CONFIG_BUILD_AT_ONCE config BUSYBOX_CONFIG_BUILD_AT_ONCE
bool "Compile all sources at once" bool "Compile all sources at once"
default n default n
@ -272,17 +330,27 @@ endmenu
menu 'Debugging Options' menu 'Debugging Options'
config BUSYBOX_CONFIG_DEBUG config BUSYBOX_CONFIG_DEBUG
bool "Build BusyBox with Debugging symbols" bool "Build BusyBox with extra Debugging symbols"
default n default n
help help
Say Y here if you wish to compile BusyBox with debugging symbols. Say Y here if you wish to examine BusyBox internals while applets are
This will allow you to use a debugger to examine BusyBox internals running. This increases the size of the binary considerably, and
while applets are running. This increases the size of the binary should only be used when doing development. If you are doing
considerably and should only be used when doing development. development and want to debug BusyBox, answer Y.
If you are doing development and want to debug BusyBox, answer Y.
Most people should answer N. Most people should answer N.
config BUSYBOX_CONFIG_DEBUG_PESSIMIZE
bool "Disable compiler optimizations."
default n
depends on BUSYBOX_CONFIG_DEBUG
help
The compiler's optimization of source code can eliminate and reorder
code, resulting in an executable that's hard to understand when
stepping through it with a debugger. This switches it off, resulting
in a much bigger executable that more closely matches the source
code.
choice choice
prompt "Additional debugging library" prompt "Additional debugging library"
default BUSYBOX_CONFIG_NO_DEBUG_LIB default BUSYBOX_CONFIG_NO_DEBUG_LIB
@ -329,7 +397,7 @@ config BUSYBOX_CONFIG_DEBUG_YANK_SUSv2
bool "Disable obsolete features removed before SUSv3?" bool "Disable obsolete features removed before SUSv3?"
default y default y
help help
This option will disable backwards compatability with SuSv2, This option will disable backwards compatibility with SuSv2,
specifically, old-style numeric options ('command -1 <file>') specifically, old-style numeric options ('command -1 <file>')
will not be supported in head, tail, and fold. (Note: should will not be supported in head, tail, and fold. (Note: should
yank from renice too.) yank from renice too.)

View File

@ -197,7 +197,7 @@ config BUSYBOX_CONFIG_FEATURE_TAR_COMPRESS
If you enable this option tar will be able to call uncompress, If you enable this option tar will be able to call uncompress,
when extracting .tar.Z archives. when extracting .tar.Z archives.
config BUSYBOX_CONFIG_FEATURE_TAR_OLDGNU_COMPATABILITY config BUSYBOX_CONFIG_FEATURE_TAR_OLDGNU_COMPATIBILITY
bool "Enable support for old tar header format" bool "Enable support for old tar header format"
default n default n
depends on BUSYBOX_CONFIG_TAR depends on BUSYBOX_CONFIG_TAR
@ -217,7 +217,7 @@ config BUSYBOX_CONFIG_FEATURE_TAR_GNU_EXTENSIONS
config BUSYBOX_CONFIG_FEATURE_TAR_LONG_OPTIONS config BUSYBOX_CONFIG_FEATURE_TAR_LONG_OPTIONS
bool "Enable long options" bool "Enable long options"
default n default n
depends on BUSYBOX_CONFIG_TAR depends on BUSYBOX_CONFIG_TAR && BUSYBOX_CONFIG_GETOPT_LONG
help help
Enable use of long options, increases size by about 400 Bytes Enable use of long options, increases size by about 400 Bytes
@ -248,7 +248,7 @@ config BUSYBOX_CONFIG_FEATURE_LZMA_FAST
default n default n
depends on BUSYBOX_CONFIG_UNLZMA depends on BUSYBOX_CONFIG_UNLZMA
help help
This option reduce decompression time by about 33% at the cost of This option reduces decompression time by about 33% at the cost of
a 2K bigger binary. a 2K bigger binary.
config BUSYBOX_CONFIG_UNZIP config BUSYBOX_CONFIG_UNZIP

View File

@ -65,6 +65,13 @@ config BUSYBOX_CONFIG_SETCONSOLE
This program redirects the system console to another device, This program redirects the system console to another device,
like the current tty while logged in via telnet. like the current tty while logged in via telnet.
config BUSYBOX_CONFIG_FEATURE_SETCONSOLE_LONG_OPTIONS
bool "Enable long options"
default n
depends on BUSYBOX_CONFIG_SET_CONSOLE && BUSYBOX_CONFIG_GETOPT_LONG
help
Support long options for the setconsole applet.
config BUSYBOX_CONFIG_SETKEYCODES config BUSYBOX_CONFIG_SETKEYCODES
bool "setkeycodes" bool "setkeycodes"
default n default n
@ -72,4 +79,10 @@ config BUSYBOX_CONFIG_SETKEYCODES
This program loads entries into the kernel's scancode-to-keycode This program loads entries into the kernel's scancode-to-keycode
map, allowing unusual keyboards to generate usable keycodes. map, allowing unusual keyboards to generate usable keycodes.
config BUSYBOX_CONFIG_SETLOGCONS
bool "setlogcons"
default n
help
This program redirects the output console of kernel messages.
endmenu endmenu

View File

@ -26,6 +26,13 @@ config BUSYBOX_CONFIG_CAT
cat is used to concatenate files and print them to the standard cat is used to concatenate files and print them to the standard
output. Enable this option if you wish to enable the 'cat' utility. output. Enable this option if you wish to enable the 'cat' utility.
config BUSYBOX_CONFIG_CATV
bool "catv"
default n
help
Display nonprinting characters as escape sequences (like some
implementations' cat -v option).
config BUSYBOX_CONFIG_CHGRP config BUSYBOX_CONFIG_CHGRP
bool "chgrp" bool "chgrp"
default y default y
@ -52,6 +59,12 @@ config BUSYBOX_CONFIG_CHROOT
chroot is used to change the root directory and run a command. chroot is used to change the root directory and run a command.
The default command is `/bin/sh'. The default command is `/bin/sh'.
config BUSYBOX_CONFIG_CKSUM
bool "cksum"
default n
help
cksum is used to calculate the CRC32 checksum of a file.
config BUSYBOX_CONFIG_CMP config BUSYBOX_CONFIG_CMP
bool "cmp" bool "cmp"
default n default n
@ -102,6 +115,26 @@ config BUSYBOX_CONFIG_DD
by default) using specific input and output blocksizes, by default) using specific input and output blocksizes,
while optionally performing conversions on it. while optionally performing conversions on it.
config BUSYBOX_CONFIG_FEATURE_DD_SIGNAL_HANDLING
bool "Enable DD signal handling for status reporting"
default y
depends on BUSYBOX_CONFIG_DD
help
sending a SIGUSR1 signal to a running `dd' process makes it
print to standard error the number of records read and written
so far, then to resume copying.
$ dd if=/dev/zero of=/dev/null& pid=$! $ kill -USR1 $pid; sleep 1; kill $pid
10899206+0 records in 10899206+0 records out
config BUSYBOX_CONFIG_FEATURE_DD_IBS_OBS
bool "Enable ibs, obs and conv options"
default n
depends on BUSYBOX_CONFIG_DD
help
Enables support for writing a certain number of bytes in and out,
at a time, and performing conversions on the data stream.
config BUSYBOX_CONFIG_DF config BUSYBOX_CONFIG_DF
bool "df" bool "df"
default y default y
@ -109,6 +142,38 @@ config BUSYBOX_CONFIG_DF
df reports the amount of disk space used and available df reports the amount of disk space used and available
on filesystems. on filesystems.
config BUSYBOX_CONFIG_DIFF
bool "diff"
default n
help
diff compares two files or directories and outputs the
differences between them in a form that can be given to
the patch command.
config BUSYBOX_CONFIG_FEATURE_DIFF_BINARY
bool "Enable checks for binary files"
default n
depends on BUSYBOX_CONFIG_DIFF
help
This option enables support for checking for binary files
before a comparison is carried out.
config BUSYBOX_CONFIG_FEATURE_DIFF_DIR
bool "Enable directory support"
default n
depends on BUSYBOX_CONFIG_DIFF
help
This option enables support for directory and subdirectory
comparison.
config BUSYBOX_CONFIG_FEATURE_DIFF_MINIMAL
bool "Enable -d option to find smaller sets of changes"
default n
depends on BUSYBOX_CONFIG_DIFF
help
Enabling this option allows the use of -d to make diff
try hard to find the smallest possible set of changes.
config BUSYBOX_CONFIG_DIRNAME config BUSYBOX_CONFIG_DIRNAME
bool "dirname" bool "dirname"
default y default y
@ -127,6 +192,9 @@ config BUSYBOX_CONFIG_UNIX2DOS
bool bool
default n default n
depends on BUSYBOX_CONFIG_DOS2UNIX depends on BUSYBOX_CONFIG_DOS2UNIX
help
unix2dos is used to convert a text file from UNIX format to
DOS format, and vice versa.
config BUSYBOX_CONFIG_DU config BUSYBOX_CONFIG_DU
bool "du (default blocksize of 512 bytes)" bool "du (default blocksize of 512 bytes)"
@ -135,7 +203,7 @@ config BUSYBOX_CONFIG_DU
du is used to report the amount of disk space used du is used to report the amount of disk space used
for specified files. for specified files.
config BUSYBOX_CONFIG_FEATURE_DU_DEFALT_BLOCKSIZE_1K config BUSYBOX_CONFIG_FEATURE_DU_DEFAULT_BLOCKSIZE_1K
bool "Use a default blocksize of 1024 bytes (1K)" bool "Use a default blocksize of 1024 bytes (1K)"
default y default y
depends on BUSYBOX_CONFIG_DU depends on BUSYBOX_CONFIG_DU
@ -164,6 +232,13 @@ config BUSYBOX_CONFIG_ENV
a command; without options it displays the current a command; without options it displays the current
environment. environment.
config BUSYBOX_CONFIG_FEATURE_ENV_LONG_OPTIONS
bool "Enable long options"
default n
depends on BUSYBOX_CONFIG_ENV && BUSYBOX_CONFIG_GETOPT_LONG
help
Support long options for the env applet.
config BUSYBOX_CONFIG_EXPR config BUSYBOX_CONFIG_EXPR
bool "expr" bool "expr"
default y default y
@ -225,6 +300,13 @@ config BUSYBOX_CONFIG_INSTALL
help help
Copy files and set attributes. Copy files and set attributes.
config BUSYBOX_CONFIG_FEATURE_INSTALL_LONG_OPTIONS
bool "Enable long options"
default n
depends on BUSYBOX_CONFIG_INSTALL && BUSYBOX_CONFIG_GETOPT_LONG
help
Support long options for the install applet.
config BUSYBOX_CONFIG_LENGTH config BUSYBOX_CONFIG_LENGTH
bool "length" bool "length"
default y default y
@ -294,7 +376,7 @@ config BUSYBOX_CONFIG_FEATURE_LS_USERNAME
config BUSYBOX_CONFIG_FEATURE_LS_COLOR config BUSYBOX_CONFIG_FEATURE_LS_COLOR
bool "Allow use of color to identify file types" bool "Allow use of color to identify file types"
default y default y
depends on BUSYBOX_CONFIG_LS depends on BUSYBOX_CONFIG_LS && BUSYBOX_CONFIG_GETOPT_LONG
help help
This enables the --color option to ls. This enables the --color option to ls.
@ -321,6 +403,13 @@ config BUSYBOX_CONFIG_MKDIR
help help
mkdir is used to create directories with the specified names. mkdir is used to create directories with the specified names.
config BUSYBOX_CONFIG_FEATURE_MKDIR_LONG_OPTIONS
bool "Enable long options"
default n
depends on BUSYBOX_CONFIG_MKDIR && BUSYBOX_CONFIG_GETOPT_LONG
help
Support long options for the mkdir applet.
config BUSYBOX_CONFIG_MKFIFO config BUSYBOX_CONFIG_MKFIFO
bool "mkfifo" bool "mkfifo"
default y default y
@ -341,6 +430,13 @@ config BUSYBOX_CONFIG_MV
help help
mv is used to move or rename files or directories. mv is used to move or rename files or directories.
config BUSYBOX_CONFIG_FEATURE_MV_LONG_OPTIONS
bool "Enable long options"
default n
depends on BUSYBOX_CONFIG_MV && BUSYBOX_CONFIG_GETOPT_LONG
help
Support long options for the mv applet.
config BUSYBOX_CONFIG_NICE config BUSYBOX_CONFIG_NICE
bool "nice" bool "nice"
default n default n
@ -507,8 +603,8 @@ config BUSYBOX_CONFIG_TEST
default y default y
help help
test is used to check file types and compare values, test is used to check file types and compare values,
returning an appropriate exit code. The shells (ash returning an appropriate exit code. The bash shell
and bash) have test builtin. has test built in, ash can build it in optionally.
config BUSYBOX_CONFIG_FEATURE_TEST_64 config BUSYBOX_CONFIG_FEATURE_TEST_64
bool "Extend test to 64 bit" bool "Extend test to 64 bit"

View File

@ -46,6 +46,13 @@ config BUSYBOX_CONFIG_RUN_PARTS
Unless you know that run-parts is used in some of your scripts Unless you know that run-parts is used in some of your scripts
you can safely say N here. you can safely say N here.
config BUSYBOX_CONFIG_FEATURE_RUN_PARTS_LONG_OPTIONS
bool "Enable long options"
default n
depends on BUSYBOX_CONFIG_RUN_PARTS && BUSYBOX_CONFIG_GETOPT_LONG
help
Support long options for the run-parts applet.
config BUSYBOX_CONFIG_START_STOP_DAEMON config BUSYBOX_CONFIG_START_STOP_DAEMON
bool "start-stop-daemon" bool "start-stop-daemon"
default n default n
@ -54,6 +61,22 @@ config BUSYBOX_CONFIG_START_STOP_DAEMON
termination of system-level processes, usually the ones termination of system-level processes, usually the ones
started during the startup of the system. started during the startup of the system.
config BUSYBOX_CONFIG_FEATURE_START_STOP_DAEMON_FANCY
bool "Support additional arguments"
default n
depends on BUSYBOX_CONFIG_START_STOP_DAEMON
help
Support additional arguments.
-o|--oknodo ignored since we exit with 0 anyway
-v|--verbose
config BUSYBOX_CONFIG_FEATURE_START_STOP_DAEMON_LONG_OPTIONS
bool "Enable long options"
default n
depends on BUSYBOX_CONFIG_START_STOP_DAEMON && BUSYBOX_CONFIG_GETOPT_LONG
help
Support long options for the start-stop-daemon applet.
config BUSYBOX_CONFIG_WHICH config BUSYBOX_CONFIG_WHICH
bool "which" bool "which"
default y default y

View File

@ -20,6 +20,14 @@ config BUSYBOX_CONFIG_FEATURE_AWK_MATH
Enable math functions of the Awk programming language. Enable math functions of the Awk programming language.
NOTE: This will require libm to be present for linking. NOTE: This will require libm to be present for linking.
config BUSYBOX_CONFIG_ED
bool "ed"
default n
help
The original 1970's Unix text editor, from the days of teletypes.
Small, simple, evil. Part of SUSv3. If you're not already using
this, you don't need it.
config BUSYBOX_CONFIG_PATCH config BUSYBOX_CONFIG_PATCH
bool "patch" bool "patch"
default n default n

View File

@ -11,6 +11,16 @@ config BUSYBOX_CONFIG_FIND
help help
find is used to search your system to find specified files. find is used to search your system to find specified files.
config BUSYBOX_CONFIG_FEATURE_FIND_PRINT0
bool "Enable -print0 option"
default y
depends on BUSYBOX_CONFIG_FIND
help
Causes output names to be separated by a null character
rather than a newline. This allows names that contain
newlines and other whitespace to be more easily
interpreted by other programs.
config BUSYBOX_CONFIG_FEATURE_FIND_MTIME config BUSYBOX_CONFIG_FEATURE_FIND_MTIME
bool "Enable modified time matching (-mtime) option" bool "Enable modified time matching (-mtime) option"
default n default n

View File

@ -11,6 +11,14 @@ config BUSYBOX_CONFIG_INIT
help help
init is the first program run when the system boots. init is the first program run when the system boots.
config BUSYBOX_CONFIG_DEBUG_INIT
bool "debugging aid"
default n
depends on BUSYBOX_CONFIG_INIT
help
Turn this on to disable all the dangerous
rebooting stuff when debugging.
config BUSYBOX_CONFIG_FEATURE_USE_INITTAB config BUSYBOX_CONFIG_FEATURE_USE_INITTAB
bool "Support reading an inittab file" bool "Support reading an inittab file"
default y default y
@ -72,9 +80,4 @@ config BUSYBOX_CONFIG_MESG
Mesg controls access to your terminal by others. It is typically Mesg controls access to your terminal by others. It is typically
used to allow or disallow other users to write to your terminal used to allow or disallow other users to write to your terminal
default y
help
Stop all processes and (try to) power off the system.
endmenu endmenu

View File

@ -34,6 +34,13 @@ config BUSYBOX_CONFIG_CROND
Note that Busybox binary must be setuid root for this applet to Note that Busybox binary must be setuid root for this applet to
work properly. work properly.
config BUSYBOX_CONFIG_DEBUG_CROND_OPTION
bool "Support debug option -d"
depends on BUSYBOX_CONFIG_CROND
default n
help
Support option -d to enter debug mode.
config BUSYBOX_CONFIG_FEATURE_CROND_CALL_SENDMAIL config BUSYBOX_CONFIG_FEATURE_CROND_CALL_SENDMAIL
bool "Using /usr/sbin/sendmail?" bool "Using /usr/sbin/sendmail?"
default n default n
@ -57,9 +64,11 @@ config BUSYBOX_CONFIG_DC
precision arithmetic. precision arithmetic.
config BUSYBOX_CONFIG_DEVFSD config BUSYBOX_CONFIG_DEVFSD
bool "devfsd" bool "devfsd (obsolete)"
default n default n
help help
This is deprecated, and will be going away in a future release.
Provides compatibility with old device names on a devfs systems. Provides compatibility with old device names on a devfs systems.
You should set it to true if you have devfs enabled. You should set it to true if you have devfs enabled.
The following keywords in devsfd.conf are supported: The following keywords in devsfd.conf are supported:
@ -74,7 +83,8 @@ config BUSYBOX_CONFIG_DEVFSD_MODLOAD
default n default n
depends on BUSYBOX_CONFIG_DEVFSD depends on BUSYBOX_CONFIG_DEVFSD
help help
This actually doesn't work with busybox modutils but needs the real modutils. This actually doesn't work with busybox modutils but needs
the external modutils.
config BUSYBOX_CONFIG_DEVFSD_FG_NP config BUSYBOX_CONFIG_DEVFSD_FG_NP
bool "Enables the -fg and -np options" bool "Enables the -fg and -np options"
@ -91,6 +101,17 @@ config BUSYBOX_CONFIG_DEVFSD_VERBOSE
help help
Increases logging to stderr or syslog. Increases logging to stderr or syslog.
config BUSYBOX_CONFIG_FEATURE_DEVFS
bool " Use devfs names for all devices (obsolete)"
default y
help
This tells busybox to look for names like /dev/loop/0 instead of
/dev/loop0. If your /dev directory has normal names instead of
devfs names, you don't want this.
This is obsolete and will be going away someday. Consider it
deprecated.
config BUSYBOX_CONFIG_EJECT config BUSYBOX_CONFIG_EJECT
bool "eject" bool "eject"
default n default n
@ -164,9 +185,10 @@ config BUSYBOX_CONFIG_FEATURE_HDPARM_GET_IDENTITY
default n default n
depends on BUSYBOX_CONFIG_HDPARM depends on BUSYBOX_CONFIG_HDPARM
help help
Enables the -I and -Istdin options to obtain detailed information Enables the -I and -i options to obtain detailed information
directly from drives about their capabilities and supported ATA directly from drives about their capabilities and supported ATA
feature set. Enabling this option will add about 16k... feature set. If no device name is specified, hdparm will read
identify data from stdin. Enabling this option will add about 16k...
config BUSYBOX_CONFIG_FEATURE_HDPARM_HDIO_SCAN_HWIF config BUSYBOX_CONFIG_FEATURE_HDPARM_HDIO_SCAN_HWIF
bool "Register an IDE interface (DANGEROUS)" bool "Register an IDE interface (DANGEROUS)"
@ -231,7 +253,7 @@ config BUSYBOX_CONFIG_MAKEDEVS
Device properties are passed as command line arguments. Device properties are passed as command line arguments.
. .
'table' reads device properties from a file or stdin, allowing 'table' reads device properties from a file or stdin, allowing
a batch of unrelated devices to be makde with one command. a batch of unrelated devices to be made with one command.
User/group names are allowed as an alternative to uid/gid. User/group names are allowed as an alternative to uid/gid.
choice choice
@ -289,6 +311,18 @@ config BUSYBOX_CONFIG_SETSID
help help
setsid runs a program in a new session setsid runs a program in a new session
config BUSYBOX_CONFIG_TASKSET
bool "taskset"
default n
help
Retrieve or set a processes's CPU affinity
config BUSYBOX_CONFIG_TASKSET
bool "taskset"
default n
help
Retrieve or set a processes's CPU affinity (on linux)
config BUSYBOX_CONFIG_TIME config BUSYBOX_CONFIG_TIME
bool "time" bool "time"
default y default y

View File

@ -84,7 +84,7 @@ config BUSYBOX_CONFIG_MODPROBE
bool "modprobe" bool "modprobe"
default n default n
help help
Handle the loading of modules, and their dependancies on a high Handle the loading of modules, and their dependencies on a high
level. level.
Note that in the state, modprobe does not understand multiple Note that in the state, modprobe does not understand multiple

View File

@ -9,8 +9,8 @@ config BUSYBOX_CONFIG_FEATURE_IPV6
bool "Enable IPv6 support" bool "Enable IPv6 support"
default y default y
help help
Enable IPv6 support to busybox. This makes applets that talk IP Enable IPv6 support in busybox.
able to work with IPv6. This adds IPv6 support in the networking applets.
config BUSYBOX_CONFIG_ARPING config BUSYBOX_CONFIG_ARPING
bool "arping" bool "arping"
@ -22,7 +22,7 @@ config BUSYBOX_CONFIG_DNSD
bool "dnsd" bool "dnsd"
default n default n
help help
Small and static DNS server deamon. Small and static DNS server daemon.
config BUSYBOX_CONFIG_ETHER_WAKE config BUSYBOX_CONFIG_ETHER_WAKE
bool "ether-wake" bool "ether-wake"
@ -34,8 +34,8 @@ config BUSYBOX_CONFIG_FAKEIDENTD
bool "fakeidentd" bool "fakeidentd"
default n default n
help help
fakeidentd listens to the ident port and returns a set fake fakeidentd listens on the ident port and returns a predefined
value whatever it gets. fake value on any query.
config BUSYBOX_CONFIG_FTPGET config BUSYBOX_CONFIG_FTPGET
bool "ftpget" bool "ftpget"
@ -49,6 +49,13 @@ config BUSYBOX_CONFIG_FTPPUT
help help
Store a remote file via FTP. Store a remote file via FTP.
config BUSYBOX_CONFIG_FEATURE_FTPGETPUT_LONG_OPTIONS
bool "Enable long options in ftpget/ftpput"
default n
depends on BUSYBOX_CONFIG_GETOPT_LONG && (CONFIG_FTPGET || BUSYBOX_CONFIG_FTPPUT)
help
Support long options for the ftpget/ftpput applet.
config BUSYBOX_CONFIG_HOSTNAME config BUSYBOX_CONFIG_HOSTNAME
bool "hostname" bool "hostname"
default n default n
@ -61,13 +68,31 @@ config BUSYBOX_CONFIG_HTTPD
help help
Serve web pages via an HTTP server. Serve web pages via an HTTP server.
config BUSYBOX_CONFIG_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY config BUSYBOX_CONFIG_FEATURE_HTTPD_WITHOUT_INETD
bool " Support using httpd only from inetd" bool "Support using httpd as a daemon (not from inetd)"
default n default y
depends on BUSYBOX_CONFIG_HTTPD depends on BUSYBOX_CONFIG_HTTPD
help help
This option disables uid and port options for the httpd applet This option enables uid and port options for the httpd applet,
but requires inetd server daemon. and eliminates the need to be called from the inetd server daemon.
config BUSYBOX_CONFIG_FEATURE_HTTPD_RELOAD_CONFIG_SIGHUP
bool "Support reloading the global config file using hup signal"
default n
depends on BUSYBOX_CONFIG_HTTPD && BUSYBOX_CONFIG_FEATURE_HTTPD_WITHOUT_INETD
help
This option enables processing of SIGHUP to reload cached
configuration settings.
config BUSYBOX_CONFIG_FEATURE_HTTPD_SETUID
bool "Enable support -u <user> option"
default n
depends on BUSYBOX_CONFIG_HTTPD && BUSYBOX_CONFIG_FEATURE_HTTPD_WITHOUT_INETD
help
This option allows the server to run as a specific user
rather than defaulting to the user that starts the server.
Use of this option requires special privileges to change to a
different user.
config BUSYBOX_CONFIG_FEATURE_HTTPD_BASIC_AUTH config BUSYBOX_CONFIG_FEATURE_HTTPD_BASIC_AUTH
bool "Enable Basic http Authentication" bool "Enable Basic http Authentication"
@ -82,29 +107,9 @@ config BUSYBOX_CONFIG_FEATURE_HTTPD_AUTH_MD5
default y default y
depends on BUSYBOX_CONFIG_FEATURE_HTTPD_BASIC_AUTH depends on BUSYBOX_CONFIG_FEATURE_HTTPD_BASIC_AUTH
help help
Enables basic per url authentication from /etc/httpd.conf Enables basic per URL authentication from /etc/httpd.conf
using md5 passwords. using md5 passwords.
if !CONFIG_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY
config BUSYBOX_CONFIG_FEATURE_HTTPD_RELOAD_CONFIG_SIGHUP
bool " Support reloading the global config file using hup signal"
default y
depends on BUSYBOX_CONFIG_HTTPD
help
This option enables processing of SIGHUP to reload cached
configuration settings.
config BUSYBOX_CONFIG_FEATURE_HTTPD_SETUID
bool " Enable support -u <user> option"
default n
depends on BUSYBOX_CONFIG_HTTPD
help
This option allows the server to run as a specific user
rather than defaulting to the user that starts the server.
Use of this option requires special privileges to change to a
different user.
endif
config BUSYBOX_CONFIG_FEATURE_HTTPD_CONFIG_WITH_MIME_TYPES config BUSYBOX_CONFIG_FEATURE_HTTPD_CONFIG_WITH_MIME_TYPES
bool "Support loading additional MIME types at run-time" bool "Support loading additional MIME types at run-time"
default y default y
@ -119,7 +124,7 @@ config BUSYBOX_CONFIG_FEATURE_HTTPD_CGI
depends on BUSYBOX_CONFIG_HTTPD depends on BUSYBOX_CONFIG_HTTPD
help help
This option allows scripts and executables to be invoked This option allows scripts and executables to be invoked
when specific urls are requested. when specific URLs are requested.
config BUSYBOX_CONFIG_FEATURE_HTTPD_CONFIG_WITH_SCRIPT_INTERPR config BUSYBOX_CONFIG_FEATURE_HTTPD_CONFIG_WITH_SCRIPT_INTERPR
bool "Enable support for running scripts through an interpreter" bool "Enable support for running scripts through an interpreter"
@ -127,7 +132,7 @@ config BUSYBOX_CONFIG_FEATURE_HTTPD_CONFIG_WITH_SCRIPT_INTERPR
depends on BUSYBOX_CONFIG_FEATURE_HTTPD_CGI depends on BUSYBOX_CONFIG_FEATURE_HTTPD_CGI
help help
This option enables support for running scripts through an This option enables support for running scripts through an
interpreter. Turn this on, if you want PHP scripts to work interpreter. Turn this on if you want PHP scripts to work
properly. You need to supply an addition line in your httpd properly. You need to supply an addition line in your httpd
config file: config file:
*.php:/path/to/your/php *.php:/path/to/your/php
@ -145,7 +150,7 @@ config BUSYBOX_CONFIG_FEATURE_HTTPD_ENCODE_URL_STR
default y default y
depends on BUSYBOX_CONFIG_HTTPD depends on BUSYBOX_CONFIG_HTTPD
help help
After set, this option allows html encoding arbitrary This option allows html encoding arbitrary
strings for display of the browser. Output goes to stdout. strings for display of the browser. Output goes to stdout.
For example, httpd -e "<Hello World>" as For example, httpd -e "<Hello World>" as
"&#60Hello&#32World&#62". "&#60Hello&#32World&#62".
@ -260,7 +265,7 @@ config BUSYBOX_CONFIG_FEATURE_IFUPDOWN_IPV4
config BUSYBOX_CONFIG_FEATURE_IFUPDOWN_IPV6 config BUSYBOX_CONFIG_FEATURE_IFUPDOWN_IPV6
bool "Enable support for IPv6" bool "Enable support for IPv6"
default n default n
depends on BUSYBOX_CONFIG_IFUPDOWN depends on BUSYBOX_CONFIG_IFUPDOWN && BUSYBOX_CONFIG_FEATURE_IPV6
help help
If you need support for IPv6, turn this option on. If you need support for IPv6, turn this option on.
@ -286,35 +291,35 @@ config BUSYBOX_CONFIG_INETD
help help
Internet superserver daemon Internet superserver daemon
config BUSYBOX_CONFIG_FEATURE_INETD_SUPPORT_BILTIN_ECHO config BUSYBOX_CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_ECHO
bool "Support echo service" bool "Support echo service"
default n default n
depends on BUSYBOX_CONFIG_INETD depends on BUSYBOX_CONFIG_INETD
help help
Echo received data internal inetd service Echo received data internal inetd service
config BUSYBOX_CONFIG_FEATURE_INETD_SUPPORT_BILTIN_DISCARD config BUSYBOX_CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_DISCARD
bool "Support discard service" bool "Support discard service"
default n default n
depends on BUSYBOX_CONFIG_INETD depends on BUSYBOX_CONFIG_INETD
help help
Internet /dev/null internal inetd service Internet /dev/null internal inetd service
config BUSYBOX_CONFIG_FEATURE_INETD_SUPPORT_BILTIN_TIME config BUSYBOX_CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_TIME
bool "Support time service" bool "Support time service"
default n default n
depends on BUSYBOX_CONFIG_INETD depends on BUSYBOX_CONFIG_INETD
help help
Return 32 bit time since 1900 internal inetd service Return 32 bit time since 1900 internal inetd service
config BUSYBOX_CONFIG_FEATURE_INETD_SUPPORT_BILTIN_DAYTIME config BUSYBOX_CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_DAYTIME
bool "Support daytime service" bool "Support daytime service"
default n default n
depends on BUSYBOX_CONFIG_INETD depends on BUSYBOX_CONFIG_INETD
help help
Return human-readable time internal inetd service Return human-readable time internal inetd service
config BUSYBOX_CONFIG_FEATURE_INETD_SUPPORT_BILTIN_CHARGEN config BUSYBOX_CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_CHARGEN
bool "Support chargen service" bool "Support chargen service"
default n default n
depends on BUSYBOX_CONFIG_INETD depends on BUSYBOX_CONFIG_INETD
@ -337,61 +342,67 @@ config BUSYBOX_CONFIG_IP
utility. You generally don't need "ip" to use busybox with utility. You generally don't need "ip" to use busybox with
TCP/IP. TCP/IP.
if BUSYBOX_CONFIG_IP && BUSYBOX_CONFIG_IPADDR
config BUSYBOX_CONFIG_FEATURE_IP_ADDRESS config BUSYBOX_CONFIG_FEATURE_IP_ADDRESS
default n bool "ip address"
comment " address (forced enabled for ipaddr)"
endif
if ! (CONFIG_IP && BUSYBOX_CONFIG_IPADDR)
config BUSYBOX_CONFIG_FEATURE_IP_ADDRESS
bool " address"
default n default n
depends on BUSYBOX_CONFIG_IP depends on BUSYBOX_CONFIG_IP
help help
Address manipulation support for the "ip" applet. Address manipulation support for the "ip" applet.
endif
if BUSYBOX_CONFIG_IP && BUSYBOX_CONFIG_IPLINK
config BUSYBOX_CONFIG_FEATURE_IP_LINK config BUSYBOX_CONFIG_FEATURE_IP_LINK
default n bool "ip link"
comment " link (forced enabled for iplink)"
endif
if !(CONFIG_IP && BUSYBOX_CONFIG_IPLINK)
config BUSYBOX_CONFIG_FEATURE_IP_LINK
bool " link"
default n default n
depends on BUSYBOX_CONFIG_IP depends on BUSYBOX_CONFIG_IP
help help
Configure network devices with "ip". Configure network devices with "ip".
endif
if BUSYBOX_CONFIG_IP && BUSYBOX_CONFIG_IPROUTE
config BUSYBOX_CONFIG_FEATURE_IP_ROUTE config BUSYBOX_CONFIG_FEATURE_IP_ROUTE
default n bool "ip route"
comment " route (forced enabled for iproute)"
endif
if !(CONFIG_IP && BUSYBOX_CONFIG_IPROUTE)
config BUSYBOX_CONFIG_FEATURE_IP_ROUTE
bool " route"
default n default n
depends on BUSYBOX_CONFIG_IP depends on BUSYBOX_CONFIG_IP
help help
Add support for routing table management to "ip". Add support for routing table management to "ip".
endif
if BUSYBOX_CONFIG_IP && BUSYBOX_CONFIG_IPTUNNEL
config BUSYBOX_CONFIG_FEATURE_IP_TUNNEL config BUSYBOX_CONFIG_FEATURE_IP_TUNNEL
default n bool "ip tunnel"
comment " tunnel (forced enabled for iptunnel)"
endif
if !(CONFIG_IP && BUSYBOX_CONFIG_IPTUNNEL)
config BUSYBOX_CONFIG_FEATURE_IP_TUNNEL
bool " tunnel"
default n default n
depends on BUSYBOX_CONFIG_IP depends on BUSYBOX_CONFIG_IP
help help
Add support for tunneling commands to "ip". Add support for tunneling commands to "ip".
endif
config BUSYBOX_CONFIG_FEATURE_IP_SHORT_FORMS
bool "Support short forms of ip commands."
default n
depends on BUSYBOX_CONFIG_IP
help
Also support short-form of ip <OBJECT> commands:
ip addr -> ipaddr
ip link -> iplink
ip route -> iproute
ip tunnel -> iptunnel
Say N unless you desparately need the short form of the ip
object commands.
config BUSYBOX_CONFIG_IPADDR
bool
default n
depends on BUSYBOX_CONFIG_FEATURE_IP_SHORT_FORMS && BUSYBOX_CONFIG_FEATURE_IP_ADDRESS
config BUSYBOX_CONFIG_IPLINK
bool
default n
depends on BUSYBOX_CONFIG_FEATURE_IP_SHORT_FORMS && BUSYBOX_CONFIG_FEATURE_IP_LINK
config BUSYBOX_CONFIG_IPROUTE
bool
default n
depends on BUSYBOX_CONFIG_FEATURE_IP_SHORT_FORMS && BUSYBOX_CONFIG_FEATURE_IP_ROUTE
config BUSYBOX_CONFIG_IPTUNNEL
bool
default n
depends on BUSYBOX_CONFIG_FEATURE_IP_SHORT_FORMS && BUSYBOX_CONFIG_FEATURE_IP_TUNNEL
config BUSYBOX_CONFIG_IPCALC config BUSYBOX_CONFIG_IPCALC
bool "ipcalc" bool "ipcalc"
@ -407,29 +418,12 @@ config BUSYBOX_CONFIG_FEATURE_IPCALC_FANCY
help help
Adds the options hostname, prefix and silent to the output of "ipcalc". Adds the options hostname, prefix and silent to the output of "ipcalc".
config BUSYBOX_CONFIG_IPADDR config BUSYBOX_CONFIG_FEATURE_IPCALC_LONG_OPTIONS
bool "ipaddr" bool "Enable long options"
default n default n
depends on BUSYBOX_CONFIG_IPCALC && BUSYBOX_CONFIG_GETOPT_LONG
help help
Equivalent to selecting address support to "ip", above. Support long options for the ipcalc applet.
config BUSYBOX_CONFIG_IPLINK
bool "iplink"
default n
help
Equivalent to selecting link support to "ip", above.
config BUSYBOX_CONFIG_IPROUTE
bool "iproute"
default n
help
Equivalent to selecting route support to "ip", above.
config BUSYBOX_CONFIG_IPTUNNEL
bool "iptunnel"
default n
help
Equivalent to selecting tunnel support to "ip", above.
config BUSYBOX_CONFIG_NAMEIF config BUSYBOX_CONFIG_NAMEIF
bool "nameif" bool "nameif"
@ -621,7 +615,7 @@ config BUSYBOX_CONFIG_FEATURE_TFTP_BLOCKSIZE
help help
Allow the client to specify the desired block size for transfers. Allow the client to specify the desired block size for transfers.
config BUSYBOX_CONFIG_FEATURE_TFTP_DEBUG config BUSYBOX_CONFIG_DEBUG_TFTP
bool "Enable debug" bool "Enable debug"
default n default n
depends on BUSYBOX_CONFIG_TFTP depends on BUSYBOX_CONFIG_TFTP
@ -659,6 +653,7 @@ config BUSYBOX_CONFIG_FEATURE_TRACEROUTE_USE_ICMP
help help
Add feature to allow for ICMP ECHO instead of UDP datagrams. Add feature to allow for ICMP ECHO instead of UDP datagrams.
source package/busybox/config/networking/udhcp/Config.in
config BUSYBOX_CONFIG_VCONFIG config BUSYBOX_CONFIG_VCONFIG
bool "vconfig" bool "vconfig"
@ -690,11 +685,16 @@ config BUSYBOX_CONFIG_FEATURE_WGET_AUTHENTICATION
config BUSYBOX_CONFIG_FEATURE_WGET_IP6_LITERAL config BUSYBOX_CONFIG_FEATURE_WGET_IP6_LITERAL
bool "Enable IPv6 literal addresses" bool "Enable IPv6 literal addresses"
default y default y
depends on BUSYBOX_CONFIG_WGET depends on BUSYBOX_CONFIG_WGET && BUSYBOX_CONFIG_FEATURE_IPV6
help help
Support IPv6 address literal notation in URLs. Support IPv6 address literal notation in URLs.
source package/busybox/config/networking/udhcp/Config.in config BUSYBOX_CONFIG_FEATURE_WGET_LONG_OPTIONS
bool "Enable long options"
default y
depends on BUSYBOX_CONFIG_WGET && BUSYBOX_CONFIG_GETOPT_LONG
help
Support long options for the wget applet.
config BUSYBOX_CONFIG_ZCIP config BUSYBOX_CONFIG_ZCIP
bool "zcip" bool "zcip"
@ -708,4 +708,3 @@ config BUSYBOX_CONFIG_ZCIP
in the busybox examples. in the busybox examples.
endmenu endmenu

View File

@ -5,7 +5,7 @@
menu "udhcp Server/Client" menu "udhcp Server/Client"
config BUSYBOX_CONFIG_UDHCPD config BUSYBOX_CONFIG_APP_UDHCPD
bool "udhcp Server (udhcpd)" bool "udhcp Server (udhcpd)"
default n default n
help help
@ -14,7 +14,7 @@ config BUSYBOX_CONFIG_UDHCPD
See http://udhcp.busybox.net for further details. See http://udhcp.busybox.net for further details.
config BUSYBOX_CONFIG_UDHCPC config BUSYBOX_CONFIG_APP_UDHCPC
bool "udhcp Client (udhcpc)" bool "udhcp Client (udhcpc)"
default y default y
help help
@ -26,10 +26,10 @@ config BUSYBOX_CONFIG_UDHCPC
See http://udhcp.busybox.net for further details. See http://udhcp.busybox.net for further details.
config BUSYBOX_CONFIG_DUMPLEASES config BUSYBOX_CONFIG_APP_DUMPLEASES
bool "Lease display utility (dumpleases)" bool "Lease display utility (dumpleases)"
default n default n
depends on BUSYBOX_CONFIG_UDHCPD depends on BUSYBOX_CONFIG_APP_UDHCPD
help help
dumpleases displays the leases written out by the udhcpd server. dumpleases displays the leases written out by the udhcpd server.
Lease times are stored in the file by time remaining in lease, or Lease times are stored in the file by time remaining in lease, or
@ -40,7 +40,7 @@ config BUSYBOX_CONFIG_DUMPLEASES
config BUSYBOX_CONFIG_FEATURE_UDHCP_SYSLOG config BUSYBOX_CONFIG_FEATURE_UDHCP_SYSLOG
bool " Log udhcp messages to syslog (instead of stdout)" bool " Log udhcp messages to syslog (instead of stdout)"
default n default n
depends on BUSYBOX_CONFIG_UDHCPD || BUSYBOX_CONFIG_UDHCPC depends on BUSYBOX_CONFIG_APP_UDHCPD || BUSYBOX_CONFIG_APP_UDHCPC
help help
If selected, udhcpd will log all its messages to syslog, otherwise, If selected, udhcpd will log all its messages to syslog, otherwise,
it will attempt to log them to stdout. it will attempt to log them to stdout.
@ -50,7 +50,7 @@ config BUSYBOX_CONFIG_FEATURE_UDHCP_SYSLOG
config BUSYBOX_CONFIG_FEATURE_UDHCP_DEBUG config BUSYBOX_CONFIG_FEATURE_UDHCP_DEBUG
bool " Compile udhcp with noisy debugging messages" bool " Compile udhcp with noisy debugging messages"
default n default n
depends on BUSYBOX_CONFIG_UDHCPD || BUSYBOX_CONFIG_UDHCPC depends on BUSYBOX_CONFIG_APP_UDHCPD || BUSYBOX_CONFIG_APP_UDHCPC
help help
If selected, udhcpd will output extra debugging output. If using If selected, udhcpd will output extra debugging output. If using
this option, compile uDHCP with "-g", and do not fork the daemon to this option, compile uDHCP with "-g", and do not fork the daemon to

View File

@ -48,14 +48,14 @@ comment "Ash Shell Options"
depends on BUSYBOX_CONFIG_ASH depends on BUSYBOX_CONFIG_ASH
config BUSYBOX_CONFIG_ASH_JOB_CONTROL config BUSYBOX_CONFIG_ASH_JOB_CONTROL
bool " Enable Job control" bool "Job control"
default y default y
depends on BUSYBOX_CONFIG_ASH depends on BUSYBOX_CONFIG_ASH
help help
Enable job control in the ash shell. Enable job control in the ash shell.
config BUSYBOX_CONFIG_ASH_READ_NCHARS config BUSYBOX_CONFIG_ASH_READ_NCHARS
bool " Enable 'read -n N' and 'read -s' support" bool "'read -n N' and 'read -s' support"
default n default n
depends on BUSYBOX_CONFIG_ASH depends on BUSYBOX_CONFIG_ASH
help help
@ -63,7 +63,7 @@ config BUSYBOX_CONFIG_ASH_READ_NCHARS
'read -s' will read without echoing the user's input. 'read -s' will read without echoing the user's input.
config BUSYBOX_CONFIG_ASH_READ_TIMEOUT config BUSYBOX_CONFIG_ASH_READ_TIMEOUT
bool " Enable 'read -t S' support." bool "'read -t S' support."
default y default y
depends on BUSYBOX_CONFIG_ASH depends on BUSYBOX_CONFIG_ASH
help help
@ -72,14 +72,14 @@ config BUSYBOX_CONFIG_ASH_READ_TIMEOUT
as a decimal fraction, e.g. 'read -t 2.5 foo'. as a decimal fraction, e.g. 'read -t 2.5 foo'.
config BUSYBOX_CONFIG_ASH_ALIAS config BUSYBOX_CONFIG_ASH_ALIAS
bool " Enable alias support" bool "alias support"
default y default y
depends on BUSYBOX_CONFIG_ASH depends on BUSYBOX_CONFIG_ASH
help help
Enable alias support in the ash shell. Enable alias support in the ash shell.
config BUSYBOX_CONFIG_ASH_MATH_SUPPORT config BUSYBOX_CONFIG_ASH_MATH_SUPPORT
bool " Enable Posix math support" bool "Posix math support"
default y default y
depends on BUSYBOX_CONFIG_ASH depends on BUSYBOX_CONFIG_ASH
help help
@ -95,14 +95,30 @@ config BUSYBOX_CONFIG_ASH_MATH_SUPPORT_64
large numbers. large numbers.
config BUSYBOX_CONFIG_ASH_GETOPTS config BUSYBOX_CONFIG_ASH_GETOPTS
bool " Enable getopts builtin to parse positional parameters" bool "Builtin getopt to parse positional parameters"
default y default y
depends on BUSYBOX_CONFIG_ASH depends on BUSYBOX_CONFIG_ASH
help help
Enable getopts builtin in the ash shell. Enable getopts builtin in the ash shell.
config BUSYBOX_CONFIG_ASH_BUILTIN_ECHO
bool "Builtin version of 'echo'"
default y
select BUSYBOX_CONFIG_ECHO
depends on BUSYBOX_CONFIG_ASH
help
Enable support for echo, built in to ash.
config BUSYBOX_CONFIG_ASH_BUILTIN_TEST
bool "Builtin version of 'test'"
default y
select BUSYBOX_CONFIG_TEST
depends on BUSYBOX_CONFIG_ASH
help
Enable support for test, built in to ash.
config BUSYBOX_CONFIG_ASH_CMDCMD config BUSYBOX_CONFIG_ASH_CMDCMD
bool " Enable cmdcmd to override shell builtins" bool "'command' command to override shell builtins"
default y default y
depends on BUSYBOX_CONFIG_ASH depends on BUSYBOX_CONFIG_ASH
help help
@ -110,21 +126,6 @@ config BUSYBOX_CONFIG_ASH_CMDCMD
you to run the specified command with the specified arguments, you to run the specified command with the specified arguments,
even when there is an ash builtin command with the same name. even when there is an ash builtin command with the same name.
config BUSYBOX_CONFIG_ASH_BUILTIN_ECHO
bool " Enable builtin version of 'echo'"
default y
depends on BUSYBOX_CONFIG_ASH
help
Enable support for echo, built in to ash.
# this entry also appears in coreutils/Config.in, next to the echo applet
config BUSYBOX_CONFIG_FEATURE_FANCY_ECHO
bool " Enable echo options (-n and -e)"
default y
depends on BUSYBOX_CONFIG_ASH_BUILTIN_ECHO
help
This adds options (-n and -e) to echo.
config BUSYBOX_CONFIG_ASH_MAIL config BUSYBOX_CONFIG_ASH_MAIL
bool "Check for new mail on interactive shells" bool "Check for new mail on interactive shells"
default n default n
@ -140,7 +141,7 @@ config BUSYBOX_CONFIG_ASH_OPTIMIZE_FOR_SIZE
Compile ash for reduced size at the price of speed. Compile ash for reduced size at the price of speed.
config BUSYBOX_CONFIG_ASH_RANDOM_SUPPORT config BUSYBOX_CONFIG_ASH_RANDOM_SUPPORT
bool " Enable pseudorandom generator and variable $RANDOM" bool "Pseudorandom generator and variable $RANDOM"
default n default n
depends on BUSYBOX_CONFIG_ASH depends on BUSYBOX_CONFIG_ASH
help help
@ -229,13 +230,18 @@ config BUSYBOX_CONFIG_FEATURE_SH_STANDALONE_SHELL
is generally used when creating a statically linked version of busybox is generally used when creating a statically linked version of busybox
for use as a rescue shell, in the event that you screw up your system. for use as a rescue shell, in the event that you screw up your system.
Note that this will *also* cause applets to take precedence
over shell builtins of the same name. So turning this on will
eliminate any performance gained by turning on the builtin "echo"
and "test" commands in ash.
Note that when using this option, the shell will attempt to directly Note that when using this option, the shell will attempt to directly
run '/bin/busybox'. If you do not have the busybox binary sitting in run '/bin/busybox'. If you do not have the busybox binary sitting in
that exact location with that exact name, this option will not work at that exact location with that exact name, this option will not work at
all. all.
config BUSYBOX_CONFIG_FEATURE_COMMAND_EDITING config BUSYBOX_CONFIG_FEATURE_COMMAND_EDITING
bool "command line editing" bool "Command line editing"
default y default y
depends on BUSYBOX_CONFIG_MSH || BUSYBOX_CONFIG_LASH || BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_ASH depends on BUSYBOX_CONFIG_MSH || BUSYBOX_CONFIG_LASH || BUSYBOX_CONFIG_HUSH || BUSYBOX_CONFIG_ASH
help help
@ -250,28 +256,28 @@ config BUSYBOX_CONFIG_FEATURE_COMMAND_EDITING_VI
turned on and off with "set -o vi" and "set +o vi". turned on and off with "set -o vi" and "set +o vi".
config BUSYBOX_CONFIG_FEATURE_COMMAND_HISTORY config BUSYBOX_CONFIG_FEATURE_COMMAND_HISTORY
int "history size" int "History size"
default 15 default 15
depends on BUSYBOX_CONFIG_FEATURE_COMMAND_EDITING depends on BUSYBOX_CONFIG_FEATURE_COMMAND_EDITING
help help
Specify command history size in shell. Specify command history size in shell.
config BUSYBOX_CONFIG_FEATURE_COMMAND_SAVEHISTORY config BUSYBOX_CONFIG_FEATURE_COMMAND_SAVEHISTORY
bool "history saving" bool "History saving"
default n default n
depends on BUSYBOX_CONFIG_ASH && BUSYBOX_CONFIG_FEATURE_COMMAND_EDITING depends on BUSYBOX_CONFIG_ASH && BUSYBOX_CONFIG_FEATURE_COMMAND_EDITING
help help
Enable history saving in ash shell. Enable history saving in ash shell.
config BUSYBOX_CONFIG_FEATURE_COMMAND_TAB_COMPLETION config BUSYBOX_CONFIG_FEATURE_COMMAND_TAB_COMPLETION
bool "tab completion" bool "Tab completion"
default y default y
depends on BUSYBOX_CONFIG_FEATURE_COMMAND_EDITING depends on BUSYBOX_CONFIG_FEATURE_COMMAND_EDITING
help help
Enable tab completion in shell. Enable tab completion in shell.
config BUSYBOX_CONFIG_FEATURE_COMMAND_USERNAME_COMPLETION config BUSYBOX_CONFIG_FEATURE_COMMAND_USERNAME_COMPLETION
bool "username completion" bool "Username completion"
default n default n
depends on BUSYBOX_CONFIG_FEATURE_COMMAND_TAB_COMPLETION depends on BUSYBOX_CONFIG_FEATURE_COMMAND_TAB_COMPLETION
help help

View File

@ -199,10 +199,10 @@ config BUSYBOX_CONFIG_HWCLOCK
shutdown in the hardware clock, so the hardware will keep the shutdown in the hardware clock, so the hardware will keep the
correct time when Linux is _not_ running. correct time when Linux is _not_ running.
config BUSYBOX_CONFIG_FEATURE_HWCLOCK_LONGOPTIONS config BUSYBOX_CONFIG_FEATURE_HWCLOCK_LONG_OPTIONS
bool "Support long options (--hctosys,...)" bool "Support long options (--hctosys,...)"
default n default n
depends on BUSYBOX_CONFIG_HWCLOCK depends on BUSYBOX_CONFIG_HWCLOCK && BUSYBOX_CONFIG_GETOPT_LONG
help help
By default, the hwclock utility only uses short options. If you By default, the hwclock utility only uses short options. If you
are overly fond of its long options, such as --hctosys, --utc, etc) are overly fond of its long options, such as --hctosys, --utc, etc)
@ -265,16 +265,31 @@ config BUSYBOX_CONFIG_FEATURE_MDEV_CONF
That's device name (with regex match), uid:gid, and permissions. That's device name (with regex match), uid:gid, and permissions.
Optionally, that can be followed (on the same line) by an asterisk
and a command line to run after creating the corresponding device(s),
ala:
hdc root:cdrom 660 *ln -s hdc cdrom
Config file parsing stops on the first matching line. If no config Config file parsing stops on the first matching line. If no config
entry is matched, devices are created with default 0:0 660. (Make entry is matched, devices are created with default 0:0 660. (Make
the last line match .* to override this.) the last line match .* to override this.)
config BUSYBOX_CONFIG_FEATURE_MDEV_EXEC
bool "Support command execution at device addition/removal"
default n
depends on BUSYBOX_CONFIG_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
The $MDEV environment variable is set to the name of the device.
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.
Commands are executed via system() so you need /bin/sh, meaning you
probably want to select a default shell in the Shells menu.
config BUSYBOX_CONFIG_MKSWAP config BUSYBOX_CONFIG_MKSWAP
bool "mkswap" bool "mkswap"
default n default n
@ -288,6 +303,16 @@ config BUSYBOX_CONFIG_MKSWAP
Once you have created swap space using 'mkswap' you need to enable Once you have created swap space using 'mkswap' you need to enable
the swap space using the 'swapon' utility. the swap space using the 'swapon' utility.
config BUSYBOX_CONFIG_FEATURE_MKSWAP_V0
bool "version 0 support"
default n
depends on BUSYBOX_CONFIG_MKSWAP
# depends on BUSYBOX_CONFIG_MKSWAP && BUSYBOX_CONFIG_DEPRECATED
help
Enable support for the old v0 style.
If your kernel is older than 2.1.117, then v0 support is the
only option.
config BUSYBOX_CONFIG_MORE config BUSYBOX_CONFIG_MORE
bool "more" bool "more"
default y default y
@ -445,7 +470,11 @@ config BUSYBOX_CONFIG_FEATURE_MTAB_SUPPORT
example a mount under chroot won't update it), can't handle modern example a mount under chroot won't update it), can't handle modern
features like separate per-process filesystem namespaces, requires features like separate per-process filesystem namespaces, requires
that your /etc directory be writeable, tends to get easily confused that your /etc directory be writeable, tends to get easily confused
by --bind or --move mounts, and so on. (In brief: avoid.) by --bind or --move mounts, won't update if you rename a directory
that contains a mount point, and so on. (In brief: avoid.)
About the only reason to use this is if you've removed /proc from
your kernel.
endmenu endmenu

View File

@ -1,18 +1,18 @@
diff -Nur busybox-1.1.1/include/applets.h busybox-1.1.1-owrt/include/applets.h diff -ruN busybox-1.2.0-old/include/applets.h busybox-1.2.0-new/include/applets.h
--- busybox-1.1.1/include/applets.h 2006-03-22 22:16:24.000000000 +0100 --- busybox-1.2.0-old/include/applets.h 2006-07-01 00:42:10.000000000 +0200
+++ busybox-1.1.1-owrt/include/applets.h 2006-04-01 18:23:43.000000000 +0200 +++ busybox-1.2.0-new/include/applets.h 2006-07-31 00:29:34.000000000 +0200
@@ -154,6 +154,7 @@ @@ -157,6 +157,7 @@
USE_IPTUNNEL(APPLET(iptunnel, iptunnel_main, _BB_DIR_BIN, _BB_SUID_NEVER)) USE_IPTUNNEL(APPLET(iptunnel, _BB_DIR_BIN, _BB_SUID_NEVER))
USE_KILL(APPLET(kill, kill_main, _BB_DIR_BIN, _BB_SUID_NEVER)) USE_KILL(APPLET(kill, _BB_DIR_BIN, _BB_SUID_NEVER))
USE_KILLALL(APPLET(killall, kill_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) USE_KILLALL(APPLET_ODDNAME(killall, kill, _BB_DIR_USR_BIN, _BB_SUID_NEVER, killall))
+USE_KILLALL5(APPLET(killall5, kill_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) +USE_KILLALL5(APPLET_ODDNAME(killall5, kill, _BB_DIR_USR_BIN, _BB_SUID_NEVER, killall5))
USE_KLOGD(APPLET(klogd, klogd_main, _BB_DIR_SBIN, _BB_SUID_NEVER)) USE_KLOGD(APPLET(klogd, _BB_DIR_SBIN, _BB_SUID_NEVER))
USE_LASH(APPLET(lash, lash_main, _BB_DIR_BIN, _BB_SUID_NEVER)) USE_LASH(APPLET(lash, _BB_DIR_BIN, _BB_SUID_NEVER))
USE_LAST(APPLET(last, last_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) USE_LAST(APPLET(last, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
diff -Nur busybox-1.1.1/include/usage.h busybox-1.1.1-owrt/include/usage.h diff -ruN busybox-1.2.0-old/include/usage.h busybox-1.2.0-new/include/usage.h
--- busybox-1.1.1/include/usage.h 2006-03-22 22:16:24.000000000 +0100 --- busybox-1.2.0-old/include/usage.h 2006-07-01 00:42:10.000000000 +0200
+++ busybox-1.1.1-owrt/include/usage.h 2006-04-01 18:22:53.000000000 +0200 +++ busybox-1.2.0-new/include/usage.h 2006-07-31 00:25:57.000000000 +0200
@@ -1598,6 +1598,13 @@ @@ -1503,6 +1503,13 @@
#define killall_example_usage \ #define killall_example_usage \
"$ killall apache\n" "$ killall apache\n"
@ -26,9 +26,9 @@ diff -Nur busybox-1.1.1/include/usage.h busybox-1.1.1-owrt/include/usage.h
#define klogd_trivial_usage \ #define klogd_trivial_usage \
"[-c n] [-n]" "[-c n] [-n]"
#define klogd_full_usage \ #define klogd_full_usage \
diff -Nur busybox-1.1.1/procps/Config.in busybox-1.1.1-owrt/procps/Config.in diff -ruN busybox-1.2.0-old/procps/Config.in busybox-1.2.0-new/procps/Config.in
--- busybox-1.1.1/procps/Config.in 2006-03-22 22:16:25.000000000 +0100 --- busybox-1.2.0-old/procps/Config.in 2006-07-01 00:42:12.000000000 +0200
+++ busybox-1.1.1-owrt/procps/Config.in 2006-04-01 18:22:53.000000000 +0200 +++ busybox-1.2.0-new/procps/Config.in 2006-07-31 00:25:57.000000000 +0200
@@ -38,6 +38,11 @@ @@ -38,6 +38,11 @@
specified commands. If no signal name is specified, SIGTERM is specified commands. If no signal name is specified, SIGTERM is
sent. sent.
@ -41,10 +41,10 @@ diff -Nur busybox-1.1.1/procps/Config.in busybox-1.1.1-owrt/procps/Config.in
config CONFIG_PIDOF config CONFIG_PIDOF
bool "pidof" bool "pidof"
default n default n
diff -Nur busybox-1.1.1/procps/kill.c busybox-1.1.1-owrt/procps/kill.c diff -ruN busybox-1.2.0-old/procps/kill.c busybox-1.2.0-new/procps/kill.c
--- busybox-1.1.1/procps/kill.c 2006-03-22 22:16:25.000000000 +0100 --- busybox-1.2.0-old/procps/kill.c 2006-07-01 00:42:12.000000000 +0200
+++ busybox-1.1.1-owrt/procps/kill.c 2006-04-01 18:22:53.000000000 +0200 +++ busybox-1.2.0-new/procps/kill.c 2006-07-31 00:25:57.000000000 +0200
@@ -34,6 +34,7 @@ @@ -20,6 +20,7 @@
#define KILL 0 #define KILL 0
#define KILLALL 1 #define KILLALL 1
@ -52,7 +52,7 @@ diff -Nur busybox-1.1.1/procps/kill.c busybox-1.1.1-owrt/procps/kill.c
int kill_main(int argc, char **argv) int kill_main(int argc, char **argv)
{ {
@@ -48,6 +49,9 @@ @@ -34,6 +35,9 @@
#else #else
whichApp = KILL; whichApp = KILL;
#endif #endif
@ -62,7 +62,7 @@ diff -Nur busybox-1.1.1/procps/kill.c busybox-1.1.1-owrt/procps/kill.c
/* Parse any options */ /* Parse any options */
if (argc < 2) if (argc < 2)
@@ -126,6 +130,20 @@ @@ -112,6 +116,20 @@
} }
} }

View File

@ -1,7 +1,7 @@
diff -ur busybox-1.1.0/networking/telnetd.c busybox-1.1.0-owrt/networking/telnetd.c diff -ruN busybox-1.2.0-old/networking/telnetd.c busybox-1.2.0-new/networking/telnetd.c
--- busybox-1.1.0/networking/telnetd.c 2006-01-11 06:43:51.000000000 +0100 --- busybox-1.2.0-old/networking/telnetd.c 2006-07-01 00:42:02.000000000 +0200
+++ busybox-1.1.0-owrt/networking/telnetd.c 2006-01-14 17:41:20.000000000 +0100 +++ busybox-1.2.0-new/networking/telnetd.c 2006-07-31 10:52:30.000000000 +0200
@@ -45,6 +45,7 @@ @@ -44,6 +44,7 @@
#include <arpa/telnet.h> #include <arpa/telnet.h>
#include <ctype.h> #include <ctype.h>
#include <sys/syslog.h> #include <sys/syslog.h>
@ -9,7 +9,7 @@ diff -ur busybox-1.1.0/networking/telnetd.c busybox-1.1.0-owrt/networking/telnet
#include "busybox.h" #include "busybox.h"
@@ -394,11 +395,13 @@ @@ -391,11 +392,13 @@
struct in_addr bind_addr = { .s_addr = 0x0 }; struct in_addr bind_addr = { .s_addr = 0x0 };
#endif /* CONFIG_FEATURE_TELNETD_INETD */ #endif /* CONFIG_FEATURE_TELNETD_INETD */
int c; int c;
@ -25,7 +25,7 @@ diff -ur busybox-1.1.0/networking/telnetd.c busybox-1.1.0-owrt/networking/telnet
#endif /* CONFIG_FEATURE_TELNETD_INETD */ #endif /* CONFIG_FEATURE_TELNETD_INETD */
int maxlen, w, r; int maxlen, w, r;
@@ -413,6 +416,9 @@ @@ -410,6 +413,9 @@
case 'f': case 'f':
issuefile = optarg; issuefile = optarg;
break; break;
@ -35,7 +35,7 @@ diff -ur busybox-1.1.0/networking/telnetd.c busybox-1.1.0-owrt/networking/telnet
case 'l': case 'l':
loginpath = optarg; loginpath = optarg;
break; break;
@@ -465,6 +471,13 @@ @@ -459,6 +465,13 @@
sa.sin_addr = bind_addr; sa.sin_addr = bind_addr;
#endif #endif
@ -46,6 +46,6 @@ diff -ur busybox-1.1.0/networking/telnetd.c busybox-1.1.0-owrt/networking/telnet
+ SO_BINDTODEVICE, &interface, sizeof(interface)); + SO_BINDTODEVICE, &interface, sizeof(interface));
+ } + }
+ +
if (bind(master_fd, (struct sockaddr *) &sa, sizeof(sa)) < 0) { bb_xbind(master_fd, (struct sockaddr *) &sa, sizeof(sa));
bb_perror_msg_and_die("bind"); bb_xlisten(master_fd, 1);
} bb_xdaemon(0, 0);

View File

@ -1,7 +1,7 @@
diff -Nur busybox-1.1.1/include/usage.h busybox-1.1.1-owrt/include/usage.h diff -ruN busybox-1.2.0-old/include/usage.h busybox-1.2.0-new/include/usage.h
--- busybox-1.1.1/include/usage.h 2006-04-01 18:26:21.000000000 +0200 --- busybox-1.2.0-old/include/usage.h 2006-07-31 10:47:56.000000000 +0200
+++ busybox-1.1.1-owrt/include/usage.h 2006-04-01 18:27:45.000000000 +0200 +++ busybox-1.2.0-new/include/usage.h 2006-07-31 11:08:49.000000000 +0200
@@ -3268,6 +3268,7 @@ @@ -3190,6 +3190,7 @@
"\t-n,\t--now\tExit with failure if lease cannot be immediately negotiated\n" \ "\t-n,\t--now\tExit with failure if lease cannot be immediately negotiated\n" \
"\t-p,\t--pidfile=file\tStore process ID of daemon in file\n" \ "\t-p,\t--pidfile=file\tStore process ID of daemon in file\n" \
"\t-q,\t--quit\tQuit after obtaining lease\n" \ "\t-q,\t--quit\tQuit after obtaining lease\n" \
@ -9,10 +9,10 @@ diff -Nur busybox-1.1.1/include/usage.h busybox-1.1.1-owrt/include/usage.h
"\t-r,\t--request=IP\tIP address to request (default: none)\n" \ "\t-r,\t--request=IP\tIP address to request (default: none)\n" \
"\t-s,\t--script=file\tRun file at dhcp events (default: /usr/share/udhcpc/default.script)\n" \ "\t-s,\t--script=file\tRun file at dhcp events (default: /usr/share/udhcpc/default.script)\n" \
"\t-t,\t--retries=NUM\tSend up to NUM request packets\n"\ "\t-t,\t--retries=NUM\tSend up to NUM request packets\n"\
diff -Nur busybox-1.1.1/networking/udhcp/dhcpc.c busybox-1.1.1-owrt/networking/udhcp/dhcpc.c diff -ruN busybox-1.2.0-old/networking/udhcp/dhcpc.c busybox-1.2.0-new/networking/udhcp/dhcpc.c
--- busybox-1.1.1/networking/udhcp/dhcpc.c 2006-03-22 22:16:19.000000000 +0100 --- busybox-1.2.0-old/networking/udhcp/dhcpc.c 2006-07-01 00:42:02.000000000 +0200
+++ busybox-1.1.1-owrt/networking/udhcp/dhcpc.c 2006-04-01 18:28:19.000000000 +0200 +++ busybox-1.2.0-new/networking/udhcp/dhcpc.c 2006-07-31 11:08:49.000000000 +0200
@@ -49,6 +49,7 @@ @@ -47,6 +47,7 @@
.abort_if_no_lease = 0, .abort_if_no_lease = 0,
.foreground = 0, .foreground = 0,
.quit_after_lease = 0, .quit_after_lease = 0,
@ -20,15 +20,7 @@ diff -Nur busybox-1.1.1/networking/udhcp/dhcpc.c busybox-1.1.1-owrt/networking/u
.background_if_no_lease = 0, .background_if_no_lease = 0,
.interface = "eth0", .interface = "eth0",
.pidfile = NULL, .pidfile = NULL,
@@ -82,6 +83,7 @@ @@ -163,6 +164,7 @@
" immediately negotiated.\n"
" -p, --pidfile=file Store process ID of daemon in file\n"
" -q, --quit Quit after obtaining lease\n"
+" -R, --release Release IP on quit\n"
" -r, --request=IP IP address to request (default: none)\n"
" -s, --script=file Run file at dhcp events (default:\n"
" " DEFAULT_SCRIPT ")\n"
@@ -203,6 +205,7 @@
{"now", no_argument, 0, 'n'}, {"now", no_argument, 0, 'n'},
{"pidfile", required_argument, 0, 'p'}, {"pidfile", required_argument, 0, 'p'},
{"quit", no_argument, 0, 'q'}, {"quit", no_argument, 0, 'q'},
@ -36,7 +28,7 @@ diff -Nur busybox-1.1.1/networking/udhcp/dhcpc.c busybox-1.1.1-owrt/networking/u
{"request", required_argument, 0, 'r'}, {"request", required_argument, 0, 'r'},
{"script", required_argument, 0, 's'}, {"script", required_argument, 0, 's'},
{"timeout", required_argument, 0, 'T'}, {"timeout", required_argument, 0, 'T'},
@@ -214,7 +217,7 @@ @@ -174,7 +176,7 @@
/* get options */ /* get options */
while (1) { while (1) {
int option_index = 0; int option_index = 0;
@ -45,7 +37,7 @@ diff -Nur busybox-1.1.1/networking/udhcp/dhcpc.c busybox-1.1.1-owrt/networking/u
if (c == -1) break; if (c == -1) break;
switch (c) { switch (c) {
@@ -284,6 +287,9 @@ @@ -244,6 +246,9 @@
case 'q': case 'q':
client_config.quit_after_lease = 1; client_config.quit_after_lease = 1;
break; break;
@ -55,7 +47,7 @@ diff -Nur busybox-1.1.1/networking/udhcp/dhcpc.c busybox-1.1.1-owrt/networking/u
case 'r': case 'r':
requested_ip = inet_addr(optarg); requested_ip = inet_addr(optarg);
break; break;
@@ -527,8 +533,11 @@ @@ -488,8 +493,11 @@
state = BOUND; state = BOUND;
change_mode(LISTEN_NONE); change_mode(LISTEN_NONE);
@ -68,7 +60,7 @@ diff -Nur busybox-1.1.1/networking/udhcp/dhcpc.c busybox-1.1.1-owrt/networking/u
if (!client_config.foreground) if (!client_config.foreground)
client_background(); client_background();
@@ -553,12 +562,13 @@ @@ -514,12 +522,13 @@
case SIGUSR1: case SIGUSR1:
perform_renew(); perform_renew();
break; break;
@ -85,10 +77,10 @@ diff -Nur busybox-1.1.1/networking/udhcp/dhcpc.c busybox-1.1.1-owrt/networking/u
} }
} else if (retval == -1 && errno == EINTR) { } else if (retval == -1 && errno == EINTR) {
/* a signal was caught */ /* a signal was caught */
diff -Nur busybox-1.1.1/networking/udhcp/dhcpc.h busybox-1.1.1-owrt/networking/udhcp/dhcpc.h diff -ruN busybox-1.2.0-old/networking/udhcp/dhcpc.h busybox-1.2.0-new/networking/udhcp/dhcpc.h
--- busybox-1.1.1/networking/udhcp/dhcpc.h 2006-03-22 22:16:19.000000000 +0100 --- busybox-1.2.0-old/networking/udhcp/dhcpc.h 2006-07-01 00:42:02.000000000 +0200
+++ busybox-1.1.1-owrt/networking/udhcp/dhcpc.h 2006-04-01 18:27:45.000000000 +0200 +++ busybox-1.2.0-new/networking/udhcp/dhcpc.h 2006-07-31 11:08:49.000000000 +0200
@@ -19,6 +19,7 @@ @@ -18,6 +18,7 @@
struct client_config_t { struct client_config_t {
char foreground; /* Do not fork */ char foreground; /* Do not fork */
char quit_after_lease; /* Quit after obtaining lease */ char quit_after_lease; /* Quit after obtaining lease */

View File

@ -1,21 +1,23 @@
# Copyright (C) 2006 OpenWrt.org
Copyright (C) 2006 OpenWrt.org #
# This is free software, licensed under the GNU General Public License v2.
diff -Nur busybox-1.1.1/include/applets.h busybox-1.1.1-owrt/include/applets.h # See /LICENSE for more information.
--- busybox-1.1.1/include/applets.h 2006-04-01 18:26:21.000000000 +0200 #
+++ busybox-1.1.1-owrt/include/applets.h 2006-04-01 18:36:28.000000000 +0200 diff -ruN busybox-1.2.0-old/include/applets.h busybox-1.2.0-new/include/applets.h
@@ -197,6 +197,7 @@ --- busybox-1.2.0-old/include/applets.h 2006-07-31 10:47:56.000000000 +0200
USE_MV(APPLET(mv, mv_main, _BB_DIR_BIN, _BB_SUID_NEVER)) +++ busybox-1.2.0-new/include/applets.h 2006-07-31 11:21:00.000000000 +0200
USE_NAMEIF(APPLET(nameif, nameif_main, _BB_DIR_SBIN, _BB_SUID_NEVER)) @@ -200,6 +200,7 @@
USE_NC(APPLET(nc, nc_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) USE_MV(APPLET(mv, _BB_DIR_BIN, _BB_SUID_NEVER))
+USE_NETMSG(APPLET_NOUSAGE(netmsg, netmsg_main, _BB_DIR_BIN, _BB_SUID_ALWAYS)) USE_NAMEIF(APPLET(nameif, _BB_DIR_SBIN, _BB_SUID_NEVER))
USE_NETSTAT(APPLET(netstat, netstat_main, _BB_DIR_BIN, _BB_SUID_NEVER)) USE_NC(APPLET(nc, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
USE_NICE(APPLET(nice, nice_main, _BB_DIR_BIN, _BB_SUID_NEVER)) +USE_NETMSG(APPLET_NOUSAGE(netmsg, netmsg, _BB_DIR_BIN, _BB_SUID_ALWAYS))
USE_NOHUP(APPLET(nohup, nohup_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) USE_NETSTAT(APPLET(netstat, _BB_DIR_BIN, _BB_SUID_NEVER))
diff -Nur busybox-1.1.1/networking/Config.in busybox-1.1.1-owrt/networking/Config.in USE_NICE(APPLET(nice, _BB_DIR_BIN, _BB_SUID_NEVER))
--- busybox-1.1.1/networking/Config.in 2006-03-22 22:16:19.000000000 +0100 USE_NOHUP(APPLET(nohup, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
+++ busybox-1.1.1-owrt/networking/Config.in 2006-04-01 18:35:32.000000000 +0200 diff -ruN busybox-1.2.0-old/networking/Config.in busybox-1.2.0-new/networking/Config.in
@@ -451,6 +451,12 @@ --- busybox-1.2.0-old/networking/Config.in 2006-07-01 00:42:02.000000000 +0200
+++ busybox-1.2.0-new/networking/Config.in 2006-07-31 11:18:01.000000000 +0200
@@ -445,6 +445,12 @@
help help
A simple Unix utility which reads and writes data across network A simple Unix utility which reads and writes data across network
connections. connections.
@ -28,9 +30,9 @@ diff -Nur busybox-1.1.1/networking/Config.in busybox-1.1.1-owrt/networking/Confi
config CONFIG_NC_GAPING_SECURITY_HOLE config CONFIG_NC_GAPING_SECURITY_HOLE
bool "gaping security hole" bool "gaping security hole"
diff -Nur busybox-1.1.1/networking/Makefile.in busybox-1.1.1-owrt/networking/Makefile.in diff -ruN busybox-1.2.0-old/networking/Makefile.in busybox-1.2.0-new/networking/Makefile.in
--- busybox-1.1.1/networking/Makefile.in 2006-03-22 22:16:19.000000000 +0100 --- busybox-1.2.0-old/networking/Makefile.in 2006-07-01 00:42:02.000000000 +0200
+++ busybox-1.1.1-owrt/networking/Makefile.in 2006-04-01 18:35:32.000000000 +0200 +++ busybox-1.2.0-new/networking/Makefile.in 2006-07-31 11:18:01.000000000 +0200
@@ -30,6 +30,7 @@ @@ -30,6 +30,7 @@
NETWORKING-$(CONFIG_IPTUNNEL) += iptunnel.o NETWORKING-$(CONFIG_IPTUNNEL) += iptunnel.o
NETWORKING-$(CONFIG_NAMEIF) += nameif.o NETWORKING-$(CONFIG_NAMEIF) += nameif.o
@ -39,9 +41,9 @@ diff -Nur busybox-1.1.1/networking/Makefile.in busybox-1.1.1-owrt/networking/Mak
NETWORKING-$(CONFIG_NETSTAT) += netstat.o NETWORKING-$(CONFIG_NETSTAT) += netstat.o
NETWORKING-$(CONFIG_NSLOOKUP) += nslookup.o NETWORKING-$(CONFIG_NSLOOKUP) += nslookup.o
NETWORKING-$(CONFIG_PING) += ping.o NETWORKING-$(CONFIG_PING) += ping.o
diff -Nur busybox-1.1.1/networking/netmsg.c busybox-1.1.1-owrt/networking/netmsg.c diff -ruN busybox-1.2.0-old/networking/netmsg.c busybox-1.2.0-new/networking/netmsg.c
--- busybox-1.1.1/networking/netmsg.c 1970-01-01 01:00:00.000000000 +0100 --- busybox-1.2.0-old/networking/netmsg.c 1970-01-01 01:00:00.000000000 +0100
+++ busybox-1.1.1-owrt/networking/netmsg.c 2006-04-01 18:35:32.000000000 +0200 +++ busybox-1.2.0-new/networking/netmsg.c 2006-07-31 11:18:01.000000000 +0200
@@ -0,0 +1,63 @@ @@ -0,0 +1,63 @@
+/* +/*
+ * Copyright (C) 2006 Felix Fietkau <nbd@openwrt.org> + * Copyright (C) 2006 Felix Fietkau <nbd@openwrt.org>

View File

@ -1,28 +1,20 @@
# Copyright (C) 2006 OpenWrt.org
Copyright (C) 2006 OpenWrt.org #
# This is free software, licensed under the GNU General Public License v2.
--- busybox-1.1.1/networking/httpd.c 2006-03-22 22:16:19.000000000 +0100 # See /LICENSE for more information.
+++ busybox-1.1.1.new/networking/httpd.c 2006-04-01 19:41:42.150744624 +0200 #
@@ -110,6 +110,7 @@ diff -ruN busybox-1.2.0-old/networking/httpd.c busybox-1.2.0-new/networking/httpd.c
--- busybox-1.2.0-old/networking/httpd.c 2006-07-01 00:42:02.000000000 +0200
+++ busybox-1.2.0-new/networking/httpd.c 2006-08-01 10:06:58.000000000 +0200
@@ -99,6 +99,7 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> /* for connect and socket*/ #include <sys/socket.h> /* for connect and socket*/
#include <netinet/in.h> /* for sockaddr_in */ #include <netinet/in.h> /* for sockaddr_in */
+#include <arpa/inet.h> +#include <arpa/inet.h>
#include <sys/time.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/wait.h> #include <sys/wait.h>
@@ -204,8 +205,8 @@ #include <fcntl.h> /* for open modes */
@@ -165,6 +166,7 @@
void bb_show_usage(void)
{
- fprintf(stderr, "Usage: %s [-p <port>] [-c configFile] [-d/-e <string>] "
- "[-r realm] [-u user] [-h homedir]\n", bb_applet_name);
+ fprintf(stderr, "Usage: %s [-p <port>] [-l <IP address>] [-c configFile]"
+ "[-d/-e <string>] [-r realm] [-u user] [-h homedir]\n", bb_applet_name);
exit(1);
}
#endif
@@ -255,6 +256,7 @@
#endif #endif
unsigned port; /* server initial port and for unsigned port; /* server initial port and for
set env REMOTE_PORT */ set env REMOTE_PORT */
@ -30,7 +22,7 @@
union HTTPD_FOUND { union HTTPD_FOUND {
const char *found_mime_type; const char *found_mime_type;
const char *found_moved_temporarily; const char *found_moved_temporarily;
@@ -958,7 +960,10 @@ @@ -868,7 +870,10 @@
/* inet_addr() returns a value that is already in network order */ /* inet_addr() returns a value that is already in network order */
memset(&lsocket, 0, sizeof(lsocket)); memset(&lsocket, 0, sizeof(lsocket));
lsocket.sin_family = AF_INET; lsocket.sin_family = AF_INET;
@ -40,60 +32,60 @@
+ else lsocket.sin_addr.s_addr = htons(INADDR_ANY); + else lsocket.sin_addr.s_addr = htons(INADDR_ANY);
+ } + }
lsocket.sin_port = htons(config->port); lsocket.sin_port = htons(config->port);
fd = socket(AF_INET, SOCK_STREAM, 0); fd = bb_xsocket(AF_INET, SOCK_STREAM, 0);
if (fd >= 0) { /* tell the OS it's OK to reuse a previous address even though */
@@ -1996,6 +2001,7 @@ @@ -1899,6 +1904,7 @@
USE_FEATURE_HTTPD_AUTH_MD5(m_opt_md5,) USE_FEATURE_HTTPD_AUTH_MD5(m_opt_md5,)
USE_FEATURE_HTTPD_SETUID(u_opt_setuid,) USE_FEATURE_HTTPD_SETUID(u_opt_setuid,)
SKIP_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY(p_opt_port,) USE_FEATURE_HTTPD_WITHOUT_INETD(p_opt_port,)
+ SKIP_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY(l_opt_addr,) + USE_FEATURE_HTTPD_WITHOUT_INETD(l_opt_addr,)
}; };
static const char httpd_opts[]="c:d:h:" static const char httpd_opts[]="c:d:h:"
@@ -2003,7 +2009,7 @@ @@ -1906,7 +1912,7 @@
USE_FEATURE_HTTPD_BASIC_AUTH("r:") USE_FEATURE_HTTPD_BASIC_AUTH("r:")
USE_FEATURE_HTTPD_AUTH_MD5("m:") USE_FEATURE_HTTPD_AUTH_MD5("m:")
USE_FEATURE_HTTPD_SETUID("u:") USE_FEATURE_HTTPD_SETUID("u:")
- SKIP_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY("p:"); - USE_FEATURE_HTTPD_WITHOUT_INETD("p:");
+ SKIP_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY("p:l:"); + USE_FEATURE_HTTPD_WITHOUT_INETD("p:l:");
#define OPT_CONFIG_FILE (1<<c_opt_config_file) #define OPT_CONFIG_FILE (1<<c_opt_config_file)
#define OPT_DECODE_URL (1<<d_opt_decode_url) #define OPT_DECODE_URL (1<<d_opt_decode_url)
@@ -2024,6 +2030,8 @@ @@ -1927,6 +1933,8 @@
#define OPT_PORT SKIP_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY((1<<p_opt_port)) \ #define OPT_PORT USE_FEATURE_HTTPD_WITHOUT_INETD((1<<p_opt_port)) \
USE_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY(0) SKIP_FEATURE_HTTPD_WITHOUT_INETD(0)
+#define OPT_ADDRESS SKIP_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY((1<<l_opt_addr)) \ +#define OPT_ADDRESS USE_FEATURE_HTTPD_WITHOUT_INETD((1<<l_opt_addr)) \
+ USE_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY(0) + SKIP_FEATURE_HTTPD_WITHOUT_INETD(0)
#ifdef HTTPD_STANDALONE int httpd_main(int argc, char *argv[])
int main(int argc, char *argv[]) {
@@ -2036,6 +2044,7 @@ @@ -1935,6 +1943,7 @@
char *url_for_decode; char *url_for_decode;
USE_FEATURE_HTTPD_ENCODE_URL_STR(const char *url_for_encode;) USE_FEATURE_HTTPD_ENCODE_URL_STR(const char *url_for_encode;)
SKIP_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY(const char *s_port;) USE_FEATURE_HTTPD_WITHOUT_INETD(const char *s_port;)
+ SKIP_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY(const char *s_addr;) + USE_FEATURE_HTTPD_WITHOUT_INETD(const char *s_addr;)
SKIP_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY(int server;) USE_FEATURE_HTTPD_WITHOUT_INETD(int server;)
USE_FEATURE_HTTPD_SETUID(const char *s_uid;) USE_FEATURE_HTTPD_SETUID(const char *s_uid;)
@@ -2050,6 +2059,7 @@ @@ -1949,6 +1958,7 @@
#ifndef CONFIG_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY #ifdef CONFIG_FEATURE_HTTPD_WITHOUT_INETD
config->port = 80; config->port = 80;
+ config->address = ""; + config->address = "";
#endif #endif
config->ContentLength = -1; config->ContentLength = -1;
@@ -2061,6 +2071,7 @@ @@ -1960,6 +1970,7 @@
USE_FEATURE_HTTPD_AUTH_MD5(, &pass) USE_FEATURE_HTTPD_AUTH_MD5(, &pass)
USE_FEATURE_HTTPD_SETUID(, &s_uid) USE_FEATURE_HTTPD_SETUID(, &s_uid)
SKIP_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY(, &s_port) USE_FEATURE_HTTPD_WITHOUT_INETD(, &s_port)
+ SKIP_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY(, &s_addr) + USE_FEATURE_HTTPD_WITHOUT_INETD(, &s_addr)
); );
if(opt & OPT_DECODE_URL) { if(opt & OPT_DECODE_URL) {
@@ -2082,6 +2093,8 @@ @@ -1981,6 +1992,8 @@
#ifndef CONFIG_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY #ifdef CONFIG_FEATURE_HTTPD_WITHOUT_INETD
if(opt & OPT_PORT) if(opt & OPT_PORT)
config->port = bb_xgetlarg(s_port, 10, 1, 0xffff); config->port = bb_xgetlarg(s_port, 10, 1, 0xffff);
+ if (opt & OPT_ADDRESS) + if (opt & OPT_ADDRESS)

View File

@ -1,21 +1,23 @@
# Copyright (C) 2006 OpenWrt.org
Copyright (C) 2006 OpenWrt.org #
# This is free software, licensed under the GNU General Public License v2.
diff -urN busybox.old/include/applets.h busybox.dev/include/applets.h # See /LICENSE for more information.
--- busybox.old/include/applets.h 2006-04-05 01:06:29.000000000 +0200 #
+++ busybox.dev/include/applets.h 2006-04-05 01:19:09.000000000 +0200 diff -ruN busybox-1.2.0-old/include/applets.h busybox-1.2.0-new/include/applets.h
@@ -167,6 +167,7 @@ --- busybox-1.2.0-old/include/applets.h 2006-07-31 11:21:00.000000000 +0200
USE_LN(APPLET(ln, ln_main, _BB_DIR_BIN, _BB_SUID_NEVER)) +++ busybox-1.2.0-new/include/applets.h 2006-08-01 10:21:15.000000000 +0200
USE_LOADFONT(APPLET(loadfont, loadfont_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) @@ -169,6 +169,7 @@
USE_LOADKMAP(APPLET(loadkmap, loadkmap_main, _BB_DIR_SBIN, _BB_SUID_NEVER)) USE_LN(APPLET(ln, _BB_DIR_BIN, _BB_SUID_NEVER))
+USE_LOCK(APPLET_NOUSAGE(lock, lock_main, _BB_DIR_BIN, _BB_SUID_NEVER)) USE_LOADFONT(APPLET(loadfont, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
USE_LOGGER(APPLET(logger, logger_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) USE_LOADKMAP(APPLET(loadkmap, _BB_DIR_SBIN, _BB_SUID_NEVER))
USE_LOGIN(APPLET(login, login_main, _BB_DIR_BIN, _BB_SUID_ALWAYS)) +USE_LOCK(APPLET_NOUSAGE(lock, lock, _BB_DIR_BIN, _BB_SUID_NEVER))
USE_LOGNAME(APPLET(logname, logname_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) USE_LOGGER(APPLET(logger, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
diff -urN busybox.old/miscutils/Config.in busybox.dev/miscutils/Config.in USE_LOGIN(APPLET(login, _BB_DIR_BIN, _BB_SUID_ALWAYS))
--- busybox.old/miscutils/Config.in 2006-03-22 22:16:24.000000000 +0100 USE_LOGNAME(APPLET(logname, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
+++ busybox.dev/miscutils/Config.in 2006-04-05 01:07:12.000000000 +0200 diff -ruN busybox-1.2.0-old/miscutils/Config.in busybox-1.2.0-new/miscutils/Config.in
@@ -209,6 +209,12 @@ --- busybox-1.2.0-old/miscutils/Config.in 2006-07-01 00:42:09.000000000 +0200
+++ busybox-1.2.0-new/miscutils/Config.in 2006-08-01 10:21:15.000000000 +0200
@@ -231,6 +231,12 @@
Enables the 'hdparm -d' option to get/set using_dma flag. Enables the 'hdparm -d' option to get/set using_dma flag.
This is dangerous stuff, so you should probably say N. This is dangerous stuff, so you should probably say N.
@ -28,20 +30,9 @@ diff -urN busybox.old/miscutils/Config.in busybox.dev/miscutils/Config.in
config CONFIG_MAKEDEVS config CONFIG_MAKEDEVS
bool "makedevs" bool "makedevs"
default n default n
diff -urN busybox.old/miscutils/Makefile.in busybox.dev/miscutils/Makefile.in diff -ruN busybox-1.2.0-old/miscutils/lock.c busybox-1.2.0-new/miscutils/lock.c
--- busybox.old/miscutils/Makefile.in 2006-03-22 22:16:24.000000000 +0100 --- busybox-1.2.0-old/miscutils/lock.c 1970-01-01 01:00:00.000000000 +0100
+++ busybox.dev/miscutils/Makefile.in 2006-04-05 01:10:50.000000000 +0200 +++ busybox-1.2.0-new/miscutils/lock.c 2006-08-01 10:21:15.000000000 +0200
@@ -20,6 +20,7 @@
MISCUTILS-$(CONFIG_EJECT) += eject.o
MISCUTILS-$(CONFIG_HDPARM) += hdparm.o
MISCUTILS-$(CONFIG_LAST) += last.o
+MISCUTILS-$(CONFIG_LOCK) += lock.o
MISCUTILS-${CONFIG_LESS} += less.o
MISCUTILS-$(CONFIG_MAKEDEVS) += makedevs.o
MISCUTILS-$(CONFIG_MOUNTPOINT) += mountpoint.o
diff -urN busybox.old/miscutils/lock.c busybox.dev/miscutils/lock.c
--- busybox.old/miscutils/lock.c 1970-01-01 01:00:00.000000000 +0100
+++ busybox.dev/miscutils/lock.c 2006-04-05 01:07:12.000000000 +0200
@@ -0,0 +1,133 @@ @@ -0,0 +1,133 @@
+/* +/*
+ * Copyright (C) 2006 Felix Fietkau <nbd@openwrt.org> + * Copyright (C) 2006 Felix Fietkau <nbd@openwrt.org>
@ -176,3 +167,14 @@ diff -urN busybox.old/miscutils/lock.c busybox.dev/miscutils/lock.c
+ else + else
+ return do_lock(); + return do_lock();
+} +}
diff -ruN busybox-1.2.0-old/miscutils/Makefile.in busybox-1.2.0-new/miscutils/Makefile.in
--- busybox-1.2.0-old/miscutils/Makefile.in 2006-07-01 00:42:09.000000000 +0200
+++ busybox-1.2.0-new/miscutils/Makefile.in 2006-08-01 10:21:15.000000000 +0200
@@ -20,6 +20,7 @@
MISCUTILS-$(CONFIG_EJECT) += eject.o
MISCUTILS-$(CONFIG_HDPARM) += hdparm.o
MISCUTILS-$(CONFIG_LAST) += last.o
+MISCUTILS-$(CONFIG_LOCK) += lock.o
MISCUTILS-${CONFIG_LESS} += less.o
MISCUTILS-$(CONFIG_MAKEDEVS) += makedevs.o
MISCUTILS-$(CONFIG_MOUNTPOINT) += mountpoint.o

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,7 @@
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
# #
# remove (numerous) compile warnings # remove (numerous) compile warnings
# #

View File

@ -1,10 +1,14 @@
# Copyright (C) 2006 OpenWrt.org
# #
# expose (again) an hash_fd function (used 911-ipkg.patch) # This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
# #
diff -ruN busybox-1.1.1-old/coreutils/md5_sha1_sum.c busybox-1.1.1-new/coreutils/md5_sha1_sum.c # expose (again) an hash_fd function (used in 911-ipkg.patch)
--- busybox-1.1.1-old/coreutils/md5_sha1_sum.c 2006-03-30 00:14:50.000000000 +0200 #
+++ busybox-1.1.1-new/coreutils/md5_sha1_sum.c 2006-03-29 23:46:51.000000000 +0200 diff -ruN busybox-1.2.0-orig/coreutils/md5_sha1_sum.c busybox-1.2.0-libbb_hash/coreutils/md5_sha1_sum.c
@@ -15,80 +15,10 @@ --- busybox-1.2.0-orig/coreutils/md5_sha1_sum.c 2006-07-01 00:42:07.000000000 +0200
+++ busybox-1.2.0-libbb_hash/coreutils/md5_sha1_sum.c 2006-07-22 17:08:02.000000000 +0200
@@ -16,79 +16,10 @@
#include "busybox.h" #include "busybox.h"
@ -48,7 +52,7 @@ diff -ruN busybox-1.1.1-old/coreutils/md5_sha1_sum.c busybox-1.1.1-new/coreutils
- return NULL; - return NULL;
- } - }
- -
- // figure specific hash algorithims - /* figure specific hash algorithims */
- if (ENABLE_MD5SUM && hash_algo==HASH_MD5) { - if (ENABLE_MD5SUM && hash_algo==HASH_MD5) {
- md5_begin(&context.md5); - md5_begin(&context.md5);
- update = (void (*)(const void*, size_t, void*))md5_hash; - update = (void (*)(const void*, size_t, void*))md5_hash;
@ -60,11 +64,10 @@ diff -ruN busybox-1.1.1-old/coreutils/md5_sha1_sum.c busybox-1.1.1-new/coreutils
- final = (void (*)(void*, void*))sha1_end; - final = (void (*)(void*, void*))sha1_end;
- hash_len = 20; - hash_len = 20;
- } else { - } else {
- bb_error_msg_and_die("algotithm not supported"); - bb_error_msg_and_die("algorithm not supported");
- } - }
- -
- - while (0 < (count = read(src_fd, in_buf, 4096))) {
- while(0 < (count = read(src_fd, in_buf, sizeof in_buf))) {
- update(in_buf, count, &context); - update(in_buf, count, &context);
- } - }
- -
@ -85,36 +88,32 @@ diff -ruN busybox-1.1.1-old/coreutils/md5_sha1_sum.c busybox-1.1.1-new/coreutils
/* This could become a common function for md5 as well, by using md5_stream */ /* This could become a common function for md5 as well, by using md5_stream */
static int hash_files(int argc, char **argv, hash_algo_t hash_algo) static int hash_files(int argc, char **argv, hash_algo_t hash_algo)
{ {
diff -ruN busybox-1.1.1-old/include/libbb.h busybox-1.1.1-new/include/libbb.h diff -ruN busybox-1.2.0-orig/include/libbb.h busybox-1.2.0-libbb_hash/include/libbb.h
--- busybox-1.1.1-old/include/libbb.h 2006-03-30 00:14:50.000000000 +0200 --- busybox-1.2.0-orig/include/libbb.h 2006-07-01 00:42:10.000000000 +0200
+++ busybox-1.1.1-new/include/libbb.h 2006-03-30 00:31:48.000000000 +0200 +++ busybox-1.2.0-libbb_hash/include/libbb.h 2006-07-22 17:01:06.000000000 +0200
@@ -490,6 +490,12 @@ @@ -518,6 +518,8 @@
void md5_hash(const void *data, size_t length, md5_ctx_t *ctx); extern int get_terminal_width_height(int fd, int *width, int *height);
void *md5_end(void *resbuf, md5_ctx_t *ctx); extern unsigned long get_ug_id(const char *s, long (*__bb_getxxnam)(const char *));
+typedef enum { HASH_SHA1, HASH_MD5 } hash_algo_t; +typedef enum { HASH_SHA1, HASH_MD5 } hash_algo_t;
+ +
typedef struct _sha1_ctx_t_ {
uint32_t count[2];
uint32_t hash[5];
@@ -542,6 +544,10 @@
void md5_hash(const void *data, size_t length, md5_ctx_t *ctx);
void *md5_end(void *resbuf, md5_ctx_t *ctx);
+unsigned char *hash_bin_to_hex(unsigned char *hash_value, unsigned char hash_length); +unsigned char *hash_bin_to_hex(unsigned char *hash_value, unsigned char hash_length);
+int hash_fd(int fd, hash_algo_t hash_algo, uint8_t *hash_value); +int hash_fd(int fd, hash_algo_t hash_algo, uint8_t *hash_value);
+uint8_t *hash_file(const char *filename, hash_algo_t hash_algo); +uint8_t *hash_file(const char *filename, hash_algo_t hash_algo);
+ +
/* busybox.h will include dmalloc later for us, else include it here. */ extern uint32_t *bb_crc32_filltable (int endian);
#if !defined _BB_INTERNAL_H_ && defined DMALLOC
#include <dmalloc.h>
diff -ruN busybox-1.1.1-old/libbb/Makefile.in busybox-1.1.1-new/libbb/Makefile.in
--- busybox-1.1.1-old/libbb/Makefile.in 2006-03-30 00:14:50.000000000 +0200
+++ busybox-1.1.1-new/libbb/Makefile.in 2006-03-29 23:46:51.000000000 +0200
@@ -11,6 +11,7 @@
LIBBB-n:= #ifndef RB_POWER_OFF
LIBBB-y:= \ diff -ruN busybox-1.2.0-orig/libbb/hash.c busybox-1.2.0-libbb_hash/libbb/hash.c
+ hash.c \ --- busybox-1.2.0-orig/libbb/hash.c 1970-01-01 01:00:00.000000000 +0100
bb_asprintf.c ask_confirmation.c change_identity.c chomp.c \ +++ busybox-1.2.0-libbb_hash/libbb/hash.c 2006-07-22 17:07:34.000000000 +0200
compare_string_array.c concat_path_file.c copy_file.c copyfd.c \
create_icmp_socket.c create_icmp6_socket.c \
diff -ruN busybox-1.1.1-old/libbb/hash.c busybox-1.1.1-new/libbb/hash.c
--- busybox-1.1.1-old/libbb/hash.c 1970-01-01 01:00:00.000000000 +0100
+++ busybox-1.1.1-new/libbb/hash.c 2006-03-30 00:35:54.000000000 +0200
@@ -0,0 +1,100 @@ @@ -0,0 +1,100 @@
+/* +/*
+ * Copyright (C) 2003 Glenn L. McGrath + * Copyright (C) 2003 Glenn L. McGrath
@ -216,3 +215,14 @@ diff -ruN busybox-1.1.1-old/libbb/hash.c busybox-1.1.1-new/libbb/hash.c
+ +
+ return hash_value; + return hash_value;
+} +}
diff -ruN busybox-1.2.0-orig/libbb/Makefile.in busybox-1.2.0-libbb_hash/libbb/Makefile.in
--- busybox-1.2.0-orig/libbb/Makefile.in 2006-07-01 00:42:08.000000000 +0200
+++ busybox-1.2.0-libbb_hash/libbb/Makefile.in 2006-07-22 16:51:47.000000000 +0200
@@ -11,6 +11,7 @@
LIBBB-n:=
LIBBB-y:= \
+ hash.c \
bb_asprintf.c ask_confirmation.c change_identity.c chomp.c \
compare_string_array.c concat_path_file.c copy_file.c copyfd.c \
crc32.c create_icmp_socket.c create_icmp6_socket.c \

View File

@ -1,3 +1,7 @@
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
# #
# fix ipkg bugs # fix ipkg bugs
# #