projects
/
project
/
procd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
state.c: pass ubus commandline is writable buffer to service_start_early()
[project/procd.git]
/
state.c
diff --git
a/state.c
b/state.c
index
9f3033b
..
e5f0015
100644
(file)
--- a/
state.c
+++ b/
state.c
@@
-37,6
+37,7
@@
static int reboot_event;
static void state_enter(void)
{
static void state_enter(void)
{
+ char ubus_cmd[] = "/sbin/ubusd";
switch (state) {
case STATE_EARLY:
switch (state) {
case STATE_EARLY:
@@
-54,7
+55,7
@@
static void state_enter(void)
LOG("- init -\n");
service_init();
LOG("- init -\n");
service_init();
- service_start_early("ubus",
"/sbin/ubusd"
);
+ service_start_early("ubus",
ubus_cmd
);
procd_inittab();
procd_inittab_run("respawn");
procd_inittab();
procd_inittab_run("respawn");