Harald Welte has submitted this change and it was merged.

Change subject: lc15: Tweak led colors used in service file
......................................................................


lc15: Tweak led colors used in service file

service sets led to orange before/while osmo-bts is being started.
osmo-bts-lc15 sets led to green while operating. (unchanged in here)
service sets led to red when osmo-bts stops running.

Change-Id: If351f49d1ead359192d0d80bbc381afd3459c940
---
M contrib/osmo-bts-lc15.service
1 file changed, 3 insertions(+), 3 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/contrib/osmo-bts-lc15.service b/contrib/osmo-bts-lc15.service
index ab7def8..6aa9751 100644
--- a/contrib/osmo-bts-lc15.service
+++ b/contrib/osmo-bts-lc15.service
@@ -3,10 +3,10 @@
 
 [Service]
 Type=simple
-ExecStartPre=/bin/sh -c 'echo 0 > /sys/class/leds/usr0/brightness'
-ExecStartPre=/bin/sh -c 'echo 0 > /sys/class/leds/usr1/brightness'
+ExecStartPre=/bin/sh -c 'echo 1 > /sys/class/leds/usr0/brightness'
+ExecStartPre=/bin/sh -c 'echo 1 > /sys/class/leds/usr1/brightness'
 ExecStart=/usr/bin/osmo-bts-lc15 -t 2 -s -c /etc/osmocom/osmo-bts.cfg -M
-ExecStopPost=/bin/sh -c 'echo 0 > /sys/class/leds/usr0/brightness'
+ExecStopPost=/bin/sh -c 'echo 1 > /sys/class/leds/usr0/brightness'
 ExecStopPost=/bin/sh -c 'echo 0 > /sys/class/leds/usr1/brightness'
 Restart=always
 RestartSec=2

-- 
To view, visit https://gerrit.osmocom.org/3356
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: If351f49d1ead359192d0d80bbc381afd3459c940
Gerrit-PatchSet: 2
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Owner: Pau Espin Pedrol <[email protected]>
Gerrit-Reviewer: Harald Welte <[email protected]>
Gerrit-Reviewer: Jenkins Builder

Reply via email to