// - link status monitoring (restart on link-up; stop on link-down)
#include "busybox.h"
-#include <errno.h>
-#include <string.h>
#include <syslog.h>
#include <poll.h>
-#include <time.h>
-
#include <sys/wait.h>
-
#include <netinet/ether.h>
#include <net/ethernet.h>
#include <net/if.h>
if (!FOREGROUND) {
/* Do it early, before all bb_xx_msg calls */
logmode = LOGMODE_SYSLOG;
- openlog(bb_applet_name, 0, LOG_DAEMON);
+ openlog(applet_name, 0, LOG_DAEMON);
}
if (opts & 4) { // -r n.n.n.n
if (inet_aton(r_opt, &ip) == 0