Bernhard Reutner-Fischer
1ea2568469
- improve option-handling a bit
2008-05-26 21:33:05 +00:00
Denis Vlasenko
7a5f494cab
scripts: add a script which prints memory map of running busybox
2008-05-26 18:41:35 +00:00
Denis Vlasenko
c47e8978fe
scripts: add primitive memory usage meter script
2008-05-26 18:36:37 +00:00
Denis Vlasenko
fc9e108032
udhcpc: shrink
...
udhcpc: guard against zero lease time
function old new delta
timeout 4 - -4
server_addr 4 - -4
requested_ip 4 - -4
perform_release 134 112 -22
udhcpc_main 2511 2485 -26
------------------------------------------------------------------------------
(add/remove: 0/3 grow/shrink: 0/2 up/down: 0/-60) Total: -60 bytes
2008-05-26 17:32:35 +00:00
Bernhard Reutner-Fischer
6bb55cfb99
- add basic option-handling (+220b). Untested
2008-05-26 17:04:01 +00:00
Bernhard Reutner-Fischer
cf18010ca9
- use mmap instead of allocating hundreds of megabytes of RAM. +39b
2008-05-26 15:12:01 +00:00
Bernhard Reutner-Fischer
dc5d7fec35
- remove some bloat -28b: now approx. 501b
2008-05-26 13:30:41 +00:00
Bernhard Reutner-Fischer
423465cd5e
- switch to FILE base writer and remove now unneeded stuff. -50b
2008-05-26 12:19:35 +00:00
Bernhard Reutner-Fischer
55e547eb6f
- add simple first-draft unoptimized depmod just to proove Vladimir Dronnikov wrong
...
text data bss dec hex filename
569 0 0 569 239 modutils/depmod.o
2008-05-26 12:01:49 +00:00
Denis Vlasenko
a0e17f7df6
[u]mount: add/update dietlibc build fix
2008-05-26 01:19:53 +00:00
Denis Vlasenko
b267ed95bc
lineedit: correctly handle prompt longer than screen width. closes bug 3414
2008-05-25 21:52:03 +00:00
Denis Vlasenko
4830fc565a
hush: make it ignore SIGINT etc in a config wich has no job control
2008-05-25 21:50:55 +00:00
Denis Vlasenko
af6cca50af
move setgroups definition to libbb.h so that it no longer inadvertently
...
get hidden attribute
2008-05-25 04:31:54 +00:00
Denis Vlasenko
30f892a0ee
last: code shrink
...
function old new delta
show_entry 319 311 -8
last_main 917 907 -10
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-18) Total: -18 bytes
2008-05-25 01:14:14 +00:00
Denis Vlasenko
69dc325397
syslogd: do not error out on missing files to rotate. closes bug 3404.
2008-05-24 21:03:53 +00:00
Denis Vlasenko
bd23fbbd0a
docs/depmod: and example of depmod in shell/sed/awk...
2008-05-24 20:54:14 +00:00
Denis Vlasenko
8e2c9e1518
inotify: new applet by Vladimir Dronnikov <dronnikov AT gmail.com>
...
function old new delta
inotifyd_main - 453 +453
packed_usage 24246 24450 +204
inotify_add_watch - 47 +47
inotify_init - 29 +29
mask_names - 13 +13
signal_handler 130 140 +10
applet_names 1859 1868 +9
applet_main 1132 1136 +4
applet_nameofs 566 568 +2
signalled 1 2 +1
2008-05-24 20:47:18 +00:00
Denis Vlasenko
e94a87134d
mdev: fix counting of '%' in pattern
2008-05-24 16:46:13 +00:00
Denis Vlasenko
ff9234948e
mdev: fix whitespace damage
2008-05-23 20:36:33 +00:00
Bernhard Reutner-Fischer
cf575ca856
- optionally pass additional flags down to nm
2008-05-23 12:53:18 +00:00
Bernhard Reutner-Fischer
61082ec1cc
- not sure but i may have had the shutdown-time wrong and no records to verify
2008-05-22 22:05:55 +00:00
Bernhard Reutner-Fischer
69d5ba2f95
- untangle the implementation of the small and huge last applets
2008-05-22 21:56:26 +00:00
Denis Vlasenko
a959a2abdd
mdev: suppress "may be used uninitialized" warning
2008-05-22 21:35:16 +00:00
Denis Vlasenko
4801441e9a
mdev: add support for "only rename" option in mdev.conf
2008-05-22 17:49:58 +00:00
Denis Vlasenko
e9b76e1f1e
dnsd: fixes various segfaults.
...
One was a lib api change that was not updated and another
is a stack buffer overflow.
It also adds support for '*' in dnsd.conf. It resolves all hostnames to
a specific ip address. This is useful if you for example want redirect
all http traffic to your first-boot-web-wizard on you router/firewall.
By Timo Teras
2008-05-22 17:41:01 +00:00
Denis Vlasenko
ae84b11467
modprobe: fix for blacklisting
...
The patch makes the order of the alias/blacklist in modprobe.conf
irrelevant (like module-utils' modprobe). In first patch the alias had
to be defined before the blacklist which caused problems because the
modprobe.conf file is read before /lib/modules/*/modules.alias.
The attatched patch will mark the blacklisted module itself rather than
trying to find the alias that points to the blacklisted module and test
this flag later in the alias resolving stage.
2008-05-22 17:37:38 +00:00
Denis Vlasenko
dfd8282464
last: make its output more like "standard" last (aka "fancy last").
...
The main difference is that LOGIN lines are still shown by non-fancy one.
function old new delta
static._ut_usr - 26 +26
last_main 448 471 +23
static._ut_lin - 7 +7
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 1/0 up/down: 56/0) Total: 56 bytes
2008-05-22 17:35:22 +00:00
Denis Vlasenko
7b3863986d
last: trim format string a bit
2008-05-22 17:14:09 +00:00
Denis Vlasenko
b22a8059cb
last: trim help text
2008-05-22 02:10:50 +00:00
Denis Vlasenko
869d3d318f
last: optional alternative sysv-like implementation
...
(by Patricia Muscalu <patricia.muscalu AT axis.com>)
function old new delta
last_main 448 917 +469
show_entry - 319 +319
packed_usage 24216 24268 +52
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 2/0 up/down: 840/0) Total: 840 bytes
2008-05-22 02:07:58 +00:00
Bernhard Reutner-Fischer
7bd8d8fd26
- make Christian happy
2008-05-21 21:15:37 +00:00
Bernhard Reutner-Fischer
49bdf28c32
- skip empty lines and archive members
2008-05-21 10:32:39 +00:00
Denis Vlasenko
6de8994440
udhcpc: regularize the names of receiving functions,
...
pause on "serious failure to receive".
Some misc fixes are also folded in here.
2008-05-21 07:05:06 +00:00
Denis Vlasenko
19903f0d44
udhcpc: simplify renewal of the lease
2008-05-21 07:03:03 +00:00
Denis Vlasenko
b23429198e
udhcpc: properly reduce timeout if bogus packets were received
2008-05-21 07:02:16 +00:00
Denis Vlasenko
54b90b5988
fix another -Wall warning
2008-05-20 20:44:08 +00:00
Denis Vlasenko
38100a4ebe
ifenslave: add forgotten INIT_G()
2008-05-20 18:57:35 +00:00
Bernhard Reutner-Fischer
0953336951
- Rob sais that he rewrote it, so reinstate the GPLv2-only boilerplate.
2008-05-20 08:27:26 +00:00
Denis Vlasenko
eaad910655
fix "make bigdata" to not show weak aliases
2008-05-20 06:31:56 +00:00
Bernhard Reutner-Fischer
f02efd11c9
- improve readability
2008-05-19 10:28:32 +00:00
Bernhard Reutner-Fischer
5e25ddb7d3
- use STD*_FILENO some more. No object-code changes
2008-05-19 09:48:17 +00:00
Bernhard Reutner-Fischer
636a1f85e8
- use EXIT_{SUCCESS,FAILURE}. No object-code changes
2008-05-19 09:29:47 +00:00
Bernhard Reutner-Fischer
cb83abd7b6
- mention FIXME use find_mount_point()
2008-05-19 08:40:26 +00:00
Bernhard Reutner-Fischer
3576bed2f9
- improve wording
2008-05-19 08:25:23 +00:00
Bernhard Reutner-Fischer
ae4342ca3e
- Rename getpty() to xgetpty() and adjust callers.
...
- Rewrite kbd_mode and setconsole
- Introduce and use console_make_active() and xopen_xwrite_close()
- honour buffer-reservation method as set by the user (dumpkmap, loadkmap)
- shrink rtcwake and some console-tools
Saves about 270 Bytes
2008-05-19 08:18:50 +00:00
Denis Vlasenko
ee56e013cf
swapon: optional -p PRIO support (by Francois Barel <frabar666 AT gmail.com>)
...
function old new delta
swap_on_off_main 153 216 +63
packed_usage 24190 24214 +24
swap_enable_disable 127 131 +4
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 91/0) Total: 91 bytes
2008-05-18 23:05:34 +00:00
Denis Vlasenko
5599502a55
more -Wall warning fixes. -Wall is enabled now.
2008-05-18 22:28:26 +00:00
Denis Vlasenko
e125a683a7
start_stop_daemon: add -test, fix -x to not match by inode,
...
vastly improve hext text. (mostly by Roy Marples <roy AT marples.name>)
function old new delta
packed_usage 24124 24190 +66
start_stop_daemon_main 959 991 +32
start_stop_daemon_longopts 149 156 +7
check 1632 1589 -43
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/1 up/down: 105/-43) Total: 62 bytes
2008-05-18 21:17:52 +00:00
Denis Vlasenko
faf334aeb8
httpd: fix obscure case when user runs httpd -i from command line for testing.
...
(fixes bug 3334)
function old new delta
httpd_main 743 757 +14
handle_incoming_and_exit 2657 2669 +12
log_and_exit 75 43 -32
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 26/-32) Total: -6 bytes
2008-05-18 15:14:36 +00:00
Denis Vlasenko
9ddc8d54d1
modprobe: optional "blacklist" command support (by Natanael Copa)
...
is_conf_command - 56 +56
include_conf 898 917 +19
check_dep 348 356 +8
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 2/0 up/down: 83/0) Total: 83 bytes
2008-05-18 14:39:43 +00:00