X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fprocd.git;a=blobdiff_plain;f=state.c;h=71890a26847024091c116a399e9d6e09c1bbc5fa;hp=cf0c81d2c6f19e263eef3ae2a890684c19ead771;hb=89eec0d61e15bd3c3cd83d24a17fa5894ae984c1;hpb=4d06f2e9c8ce792ac531d29d44386c4cea9128ff diff --git a/state.c b/state.c index cf0c81d..71890a2 100644 --- a/state.c +++ b/state.c @@ -46,6 +46,9 @@ static void state_enter(void) break; case STATE_INIT: + // check if the wdt appeared during coldplug + if (!watchdog_fd()) + watchdog_init(); LOG("- init -\n"); log_init(); procd_connect_ubus();