mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-12-16 17:01:37 +00:00
* update client * increase maverick timeout Signed-off-by: John Crispin <john@phrozen.org>
37 lines
662 B
C
37 lines
662 B
C
/* SPDX-License-Identifier: BSD-3-Clause */
|
|
|
|
#include <linux/limits.h>
|
|
#include <unistd.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
#include <libubox/uloop.h>
|
|
#include <libubox/ulog.h>
|
|
|
|
static void
|
|
maverick_cb(struct uloop_timeout *delay)
|
|
{
|
|
ULOG_INFO("triggering maverick check");
|
|
if (system("/usr/libexec/ucentral/maverick.sh"))
|
|
ULOG_ERR("failed to launch Maverick");
|
|
uloop_end();
|
|
return;
|
|
}
|
|
|
|
static struct uloop_timeout maverick = {
|
|
.cb = maverick_cb,
|
|
};
|
|
|
|
int
|
|
main(int argc, char **argv)
|
|
{
|
|
ulog_open(ULOG_STDIO | ULOG_SYSLOG, LOG_DAEMON, "maverick");
|
|
|
|
uloop_init();
|
|
uloop_timeout_set(&maverick, 300 * 1000);
|
|
uloop_run();
|
|
uloop_done();
|
|
|
|
return 0;
|
|
}
|