Vladislav Grishenko
5827167338
udhcpd: optional IP selection based on MAC hash
...
function old new delta
find_free_or_expired_nip 153 225 +72
Signed-off-by: Vladislav Grishenko <themiron@mail.ru>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-16 13:31:30 +01:00
Denys Vlasenko
4fdb67cc65
echo: fix SEGV when run with no args
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-15 18:35:54 +01:00
Denys Vlasenko
28556b95fe
wget: check for final write errors for -O FILE too
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-15 11:03:53 +01:00
Gilles Espinasse
26b80e8fe3
Add the help text for 'position independent executable' code build
...
Signed-off-by: Gilles Espinasse <g.esp@free.fr>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-15 03:02:08 +01:00
Denys Vlasenko
5dad4aeede
modprobe: fix "modprobe -l name-with-dash"
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-15 02:17:31 +01:00
Denys Vlasenko
df7f2008c2
modinfo: trivial optimizations
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-15 01:45:14 +01:00
Lauri Kasanen
12f44ea183
modinfo: show firmware and depends fields
...
Signed-off-by: Lauri Kasanen <curaga@operamail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-15 01:43:04 +01:00
Denys Vlasenko
2384a357f4
wget: make "wget -O FILE URL1 URL2" concatenate output
...
Also fixes a few cases where URL1's data (like start pos)
was leaking into URL2
function old new delta
wget_main 2303 2321 +18
progress_meter 140 152 +12
retrieve_file_data 397 396 -1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 30/-1) Total: 29 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-15 00:58:36 +01:00
Pere Orga
57b4909db9
wget: fix SEGV with multiple urls and redirection
...
Signed-off-by: Pere Orga <gotrunks@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-14 23:56:07 +01:00
Denys Vlasenko
7c6f2468cc
hush: do not print killer signal's name for SIGPIPE
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-14 17:17:10 +01:00
Denys Vlasenko
b9348440b0
echo: fix ENOSPC detection and some iffy code in \NNN handling
...
function old new delta
echo_main 330 302 -28
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-14 15:42:18 +01:00
Vladislav Grishenko
713e6d78e1
udhcpc: use more correct, and more importantly, more understandable BPF code
...
Signed-off-by: Vladislav Grishenko <themiron@mail.ru>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-14 04:50:30 +01:00
Denys Vlasenko
48a5219f39
reverted LINHIB0001 swap signature addition
...
see:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/683605
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-14 03:52:16 +01:00
Dan Fandrich
dc50676cce
Move stpcpy replacement function into libbb
...
Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-13 18:37:12 +01:00
Denys Vlasenko
4ed3c52ce9
mktemp: make it more compatible with GNU coreutils 8.4
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-13 17:38:34 +01:00
Denys Vlasenko
07cda2268a
fix bug 3223 (parameter loading problem for 2.4 kernels)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-13 04:17:35 +01:00
Denys Vlasenko
9a5b7f636d
wget: support multiple URLs on command line even without -O :)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-13 02:49:43 +01:00
Denys Vlasenko
a3661096f2
wget: support multiple URLs on command line
...
function old new delta
wget_main 2190 2310 +120
progress_meter 124 140 +16
parse_url 288 304 +16
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 152/0) Total: 152 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-13 02:33:11 +01:00
Denys Vlasenko
a84eadf9bf
typo fix in comment
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-12 23:40:31 +01:00
Denys Vlasenko
e1a4209a5e
find: trim help text a bit
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-12 20:37:41 +01:00
Denys Vlasenko
053c12e0de
find: remove the hack we use to parse options first, replace with simpler code
...
text data bss dec hex filename
867764 438 7552 875754 d5cea busybox_old
867629 438 7552 875619 d5c63 busybox_unstripped
function old new delta
parse_params 1377 1440 +63
static.params 151 192 +41
static.options 42 57 +15
fileAction 151 153 +2
find_main 466 267 -199
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/1 up/down: 121/-199) Total: -78 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-12 20:27:13 +01:00
Denys Vlasenko
805f2453d0
find: print/print0/prune _can_ be inverted, fix it
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-12 20:26:14 +01:00
Denys Vlasenko
27076b8233
find: document ! (not) operator
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-12 18:49:48 +01:00
Denys Vlasenko
4604dd86c5
find: help text: PATH must be first
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-12 18:24:15 +01:00
Denys Vlasenko
56cdb2fc37
find: yet another tweak to help text
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-12 17:13:03 +01:00
Denys Vlasenko
4dea9eb07f
find: fix help text about -prune: it also does assume -print
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-12 17:08:16 +01:00
Denys Vlasenko
cef85c2442
find: significantly improve hext text. +116 bytes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-12 16:35:24 +01:00
Denys Vlasenko
0b8a7723c7
typo fix
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-12 01:56:25 +01:00
Denys Vlasenko
88ad9da65e
wget: display 100% at the _end_ of chunked download
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-11 23:06:21 +01:00
Denys Vlasenko
c60f4460bb
wget: chunked mode fix. Closes bug 3229
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-11 22:23:23 +01:00
Denys Vlasenko
f9af375668
wget: explain clearerr more clearly
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-11 22:01:33 +01:00
Denys Vlasenko
8766a791e8
wget: correctly handle rare case when we get EAGAIN _on first_ read
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-11 21:42:00 +01:00
Denys Vlasenko
ab8d00d64f
progress meter: fix bugs found in stall detection and unknown size logic
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-11 19:09:30 +01:00
Denys Vlasenko
d55e139649
progress meter: move file name to bb_progress_t. +20 bytes
...
We were doing expensive unicode conversion on every update
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-11 18:56:13 +01:00
Denys Vlasenko
e52e67cb51
libbb/progress.c: make sure we never get negative ETA
...
function old new delta
bb_progress_update 738 733 -5
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-11 12:59:11 +01:00
Denys Vlasenko
838d4bb0cd
progress meter: display >999 hours ETA correctly
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-10 23:35:52 +01:00
Denys Vlasenko
f836f01cc3
wget: shrink progress meter code; strink wget and add debug logging
...
function old new delta
fgets_and_trim - 73 +73
retrieve_file_data 367 349 -18
bb_progress_update 723 699 -24
wget_main 2220 2190 -30
ftpcmd 133 87 -46
gethdr 200 153 -47
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/5 up/down: 73/-165) Total: -92 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-10 23:02:28 +01:00
Denys Vlasenko
805aa9fec9
progress bar: better overflow protection; more precise bar
...
function old new delta
bb_progress_update 639 749 +110
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-10 14:25:51 +01:00
Denys Vlasenko
9213a55bf0
wget: use closed HTTP/1.1 connection, stop when we dl'ed $content_len bytes
...
function old new delta
retrieve_file_data 353 367 +14
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-10 13:23:45 +01:00
Denys Vlasenko
aaf091f97d
remve erroneous dependensies on INSTALLER
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-10 11:18:31 +01:00
Denys Vlasenko
95897f9fd2
getty config help: fix example script
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-10 10:38:13 +01:00
Denys Vlasenko
b44e9760e1
getty: extend its config help
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-10 10:24:51 +01:00
Denys Vlasenko
b2f00ac22a
reset: "ESC(K" selects German, why do we use THAT? Change to "ESC(B" (US)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-10 10:18:22 +01:00
Denys Vlasenko
dee0fc9da1
save 10 bytes on strings
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-10 10:01:49 +01:00
Denys Vlasenko
0fac2f7b5b
wget: remove functions which retry on EINTR
...
function old new delta
retrieve_file_data 392 353 -39
safe_fgets 58 - -58
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 0/1 up/down: 0/-97) Total: -97 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-10 09:55:05 +01:00
Denys Vlasenko
e3ece7878b
fix trivial build failure
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-10 09:50:07 +01:00
Denys Vlasenko
df4e16c9af
wget: use FEATURE_COPYBUF_KB-sized buffer. Much faster for local transfers
...
function old new delta
base64enc - 53 +53
gethdr 190 200 +10
ftpcmd 129 133 +4
progress_meter 160 122 -38
retrieve_file_data 431 392 -39
base64enc_512 46 - -46
wget_main 2456 2220 -236
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 2/3 up/down: 67/-359) Total: -292 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-10 06:29:06 +01:00
Denys Vlasenko
77350aa933
tc: less ugly check for bad sizeof(G)
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-10 06:28:09 +01:00
Denys Vlasenko
f133471302
iproute: fix handling of "dev IFACE" selector
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-09 04:39:09 +01:00
Denys Vlasenko
e7212a4ce5
scripts/mkconfigs: don't use invalid basic regexp
...
\? are GNU extension and thus are non-standard
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-09 01:33:41 +01:00