X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=state.c;h=e5f0015befd380a8e469873030a3cf03f44abe63;hb=619ec82ececcbe9b9d1ca18ac6bc7c5c68c96825;hp=9f3033be83299e3a5f760b7e510aad2a9eae8fde;hpb=916f95cb58604038695347ee41a430d8ca1f0556;p=project%2Fprocd.git diff --git a/state.c b/state.c index 9f3033b..e5f0015 100644 --- a/state.c +++ b/state.c @@ -37,6 +37,7 @@ static int reboot_event; static void state_enter(void) { + char ubus_cmd[] = "/sbin/ubusd"; switch (state) { case STATE_EARLY: @@ -54,7 +55,7 @@ static void state_enter(void) LOG("- init -\n"); service_init(); - service_start_early("ubus", "/sbin/ubusd"); + service_start_early("ubus", ubus_cmd); procd_inittab(); procd_inittab_run("respawn");