diff options
author | Michel Stam <m.stam@fugro.nl> | 2014-11-04 12:19:04 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2014-11-04 12:19:04 +0100 |
commit | d3fabf89d7d38a436672ac2deea7904351b1b12a (patch) | |
tree | baae6201eb8c0b2b74a1732762c3034efcb4a00e /networking | |
parent | fdd957bdc9981cc2c1efb4452f55bb44a88cbfe0 (diff) | |
download | busybox-d3fabf89d7d38a436672ac2deea7904351b1b12a.tar.gz |
zcip: Add environment variable for overriding log functionality
function old new delta
bb_logenv_override - 70 +70
packed_usage 29969 30033 +64
zcip_main 1426 1431 +5
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 2/0 up/down: 139/0) Total: 139 bytes
Signed-off-by: Michel Stam <m.stam@fugro.nl>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r-- | networking/zcip.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/networking/zcip.c b/networking/zcip.c index 635d660b3..a3307c5c9 100644 --- a/networking/zcip.c +++ b/networking/zcip.c @@ -33,6 +33,9 @@ //usage: "\n -l x.x.0.0 Use this range instead of 169.254" //usage: "\n -v Verbose" //usage: "\n" +//usage: "\n$LOGGING=none Suppress logging" +//usage: "\n$LOGGING=syslog Log to syslog" +//usage: "\n" //usage: "\nWith no -q, runs continuously monitoring for ARP conflicts," //usage: "\nexits only on I/O errors (link down etc)" @@ -249,6 +252,8 @@ int zcip_main(int argc UNUSED_PARAM, char **argv) openlog(applet_name, 0, LOG_DAEMON); logmode |= LOGMODE_SYSLOG; } + bb_logenv_override(); + { // -l n.n.n.n struct in_addr net; if (inet_aton(l_opt, &net) == 0 |