mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-03-11 11:38:41 +01:00
initd: give root flag based on owsd config
This commit is contained in:
parent
d88afaa730
commit
cc46c0c1e3
1 changed files with 9 additions and 3 deletions
|
|
@ -7,9 +7,15 @@ USE_PROCD=1
|
|||
|
||||
start_service() {
|
||||
procd_open_instance
|
||||
config_load topologyd
|
||||
procd_set_param command "/sbin/topologyd"
|
||||
procd_append_param command --root
|
||||
config_load owsd
|
||||
config_get enable ubusproxy enable
|
||||
procd_set_param command "/sbin/topologyd"
|
||||
|
||||
if [ "$enable" ]
|
||||
then
|
||||
procd_append_param command --root
|
||||
fi
|
||||
|
||||
procd_set_param respawn
|
||||
procd_set_param stdout 1
|
||||
procd_set_param stderr 1
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue