mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 01:22:25 +00:00
ucentral-client: only start the service if the operational cert is present
Fixes: WIFI-14694 Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
@@ -14,6 +14,7 @@ reload_service() {
|
||||
}
|
||||
|
||||
start_service() {
|
||||
[ -f /etc/ucentral/operational.ca -a -f /etc/ucentral/operational.pem ] || return
|
||||
[ -s /etc/ucentral/capabilities.json ] || rm /etc/ucentral/capabilities.json
|
||||
[ -f /etc/ucentral/capabilities.json ] || /usr/share/ucentral/capabilities.uc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user