From b2dcd3a8533d6ff8f868f38c8e2bcaf96deda1ef Mon Sep 17 00:00:00 2001 From: Kenneth Johansson Date: Thu, 24 Nov 2016 12:56:49 +0100 Subject: [PATCH] perf_manager: turn off all leds when turning off. we need this so that when we do a reset the leds is known to be off. --- peripheral_manager/files/etc/init.d/peripheral_manager | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/peripheral_manager/files/etc/init.d/peripheral_manager b/peripheral_manager/files/etc/init.d/peripheral_manager index 34c5e1e17..c0e1beb8f 100755 --- a/peripheral_manager/files/etc/init.d/peripheral_manager +++ b/peripheral_manager/files/etc/init.d/peripheral_manager @@ -20,7 +20,8 @@ service_running() { ubus -t 2 wait_for button } -stop() { - service_stop /sbin/peripheral_manager +stop_service() { + ubus call leds set '{"state":"alloff"}' + service_stop /sbin/peripheral_manager }