X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fprocd.git;a=blobdiff_plain;f=state.c;h=71890a26847024091c116a399e9d6e09c1bbc5fa;hp=cf0c81d2c6f19e263eef3ae2a890684c19ead771;hb=35560c7288919006a3daf57fe4dbfca82be4462f;hpb=0d44f0de9eacf687182ebebfcb1f9496dbf3bc32 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();