summaryrefslogtreecommitdiff
path: root/initd
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2019-08-16 16:14:27 +0200
committerRafał Miłecki <rafal@milecki.pl>2019-08-22 13:37:47 +0200
commit95580316bc2d37d9261691ea99dae518bde46836 (patch)
tree45ad898ff3f1b2c17295ab3463dfa51c76b953b0 /initd
parent832369078d818d19ab64051fdc8da9e06c90ad88 (diff)
downloadprocd-95580316bc2d37d9261691ea99dae518bde46836.tar.gz
system: support passing "options" to the "sysupgrade" ubus method
Object passed as "options" gets translated into environment variables UPGRADE_OPT_*. E.g. "options": { "foo": 5 } will result in setting UPGRADE_OPT_FOO=5. This allows stage2 sysupgrade to get options explicitly. So far it was guessing what to do by checking for existence of some files (e.g. sysupgrade.tgz). Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'initd')
-rw-r--r--initd/preinit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/initd/preinit.c b/initd/preinit.c
index fbb36df..2b4df4b 100644
--- a/initd/preinit.c
+++ b/initd/preinit.c
@@ -75,7 +75,7 @@ check_sysupgrade(void)
fclose(sysupgrade);
- sysupgrade_exec_upgraded(prefix, path, command);
+ sysupgrade_exec_upgraded(prefix, path, command, NULL);
while (true)
sleep(1);