Skip to content

Commit

Permalink
cloud_discovery: fix firstcontact fallback mode
Browse files Browse the repository at this point in the history
Fixes: WIFI-14320
Signed-off-by: John Crispin <[email protected]>
  • Loading branch information
blogic committed Dec 10, 2024
1 parent e6f20ce commit 47f7174
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions feeds/tip/cloud_discovery/files/etc/init.d/cloud_discover
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh /etc/rc.common

START=99
START=98
USE_PROCD=1
PROG=/usr/bin/cloud_discovery

Expand All @@ -23,10 +23,12 @@ start_service() {
/usr/share/ucentral/ucentral.uc /etc/ucentral/ucentral.cfg.0000000001 > /dev/null

[ "$(fw_printenv -n pki2)" -eq 1 ] || {
[ -f /etc/ucentral/gateway.json ] || /etc/init.d/firstcontact start
/etc/init.d/cloud_discover disable
return
}

/etc/init.d/firstcontact disable

procd_open_instance
procd_set_param command "$PROG"
procd_set_param respawn
Expand Down
1 change: 1 addition & 0 deletions feeds/tip/firstcontact/files/etc/init.d/firstcontact
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh /etc/rc.common

START=99
USE_PROCD=1
PROG=/usr/bin/ucode

Expand Down
2 changes: 2 additions & 0 deletions feeds/ucentral/ucentral-client/files/etc/init.d/ucentral
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/sh /etc/rc.common

START=99
STOP=01
USE_PROCD=1
PROG=/usr/sbin/ucentral

Expand Down

0 comments on commit 47f7174

Please sign in to comment.