<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-cite-prefix">On 12/29/2014 08:16 PM, Larry Harmon
wrote:<br>
</div>
<blockquote
cite="mid:78A47A9F25224F4785BDE100564E22AB6F34426C@Thrud.TurningTechnologies.local"
type="cite">
<p class="MsoNormal"><o:p></o:p></p>
<p class="MsoNormal">I am using a simple shell script, started by
system, to set LEDs on a Marvell Armada 370 plug.<o:p></o:p></p>
<p class="MsoNormal">The script uses a while loop with a "sleep
30" line</p>
</blockquote>
<br>
Hmm somehow using a script ( and a type service unit ) to accomplish
this does not sound right to me and I'm pretty sure greg k-h has the
correct way of achieving this but did you try fiddling with module
options<br>
<br>
/etc/modprobe.d/<module>.conf<br>
<br>
options foo bar<br>
<br>
Or find the trigger<br>
<br>
cat /sys/class/leds/<foo>-led/trigger<br>
<br>
Create an tmpfile<br>
<br>
/etc/tmpfiles.d/<foo>-led.conf<br>
<br>
w /sys/class/leds/<foo>-led/trigger - - - - <the trigger to
be used><br>
<br>
systemd-tmpfiles --create <foo>-led.conf<br>
<br>
And try that instead of writing a script to accomplish this?<br>
<br>
( This might be a bug in the kernel/driver if this is not working
correctly or if you cant "tweak it" it with something like the above
) <br>
<br>
JBG<br>
</body>
</html>