diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-09-06 18:36:50 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-09-06 18:36:50 +0000 |
commit | 601d93b47b8ac41f1fd763db15f05b6419c0b398 (patch) | |
tree | 768c23fe79bb81583de7376a4d744632d888d303 /networking/udhcp/script.c | |
parent | 05fa38a6084b2f829750451d934f18c4dad62776 (diff) | |
download | busybox-w32-601d93b47b8ac41f1fd763db15f05b6419c0b398.tar.gz busybox-w32-601d93b47b8ac41f1fd763db15f05b6419c0b398.tar.bz2 busybox-w32-601d93b47b8ac41f1fd763db15f05b6419c0b398.zip |
Implement optional syslog logging using ordinary
bb_xx_msg calls, and convert networking/* to it.
The rest of bbox will be converted gradually.
git-svn-id: svn://busybox.net/trunk/busybox@16058 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'networking/udhcp/script.c')
-rw-r--r-- | networking/udhcp/script.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/udhcp/script.c b/networking/udhcp/script.c index 5a4b33a53..3c4b51b24 100644 --- a/networking/udhcp/script.c +++ b/networking/udhcp/script.c | |||
@@ -200,7 +200,7 @@ void udhcp_run_script(struct dhcpMessage *packet, const char *name) | |||
200 | if (client_config.script == NULL) | 200 | if (client_config.script == NULL) |
201 | return; | 201 | return; |
202 | 202 | ||
203 | DEBUG(LOG_INFO, "vforking and execle'ing %s", client_config.script); | 203 | DEBUG("vfork'ing and execle'ing %s", client_config.script); |
204 | 204 | ||
205 | envp = fill_envp(packet); | 205 | envp = fill_envp(packet); |
206 | /* call script */ | 206 | /* call script */ |
@@ -216,7 +216,7 @@ void udhcp_run_script(struct dhcpMessage *packet, const char *name) | |||
216 | /* exec script */ | 216 | /* exec script */ |
217 | execle(client_config.script, client_config.script, | 217 | execle(client_config.script, client_config.script, |
218 | name, NULL, envp); | 218 | name, NULL, envp); |
219 | LOG(LOG_ERR, "script %s failed: %m", client_config.script); | 219 | bb_perror_msg("script %s failed", client_config.script); |
220 | exit(1); | 220 | exit(1); |
221 | } | 221 | } |
222 | } | 222 | } |