M-H wrote:
>
> So set the usercommand in the tweaks and rebooted .
> And it worked right away.
>
Grumpy Bob wrote:
> I've added this to my install - works well, and everything's working
> sweetly.
>
Great - thanks to both of you for letting me know. Looks like we're
there in principle. I won't be surprised if that sbpd script
modification can be improved by someone with more scripting experience.
For instance, if pigpiod never initialises for some reason, the while
loop will effectively hang the script. *
I also reviewed my lcd-brightness.sh script (that Ralphy provided the
wget command for above), and for the life of me, I can't figure out why
I've used
Code:
--------------------
echo $(pigs GDC $g)
--------------------
when
Code:
--------------------
pigs GDC $g
--------------------
works just as well. I think it was a remnant of my misguided attempts
to get a return value into the lua applet, but the basic command does
that anyway.
So there are some bits that need tidying up I think.
* Aargh - I've just noticed that the modified sbpd script is creating a
file called '0' in the root folder - evidently something to do with that
'while ! [ $(pigs t) > '0' ] ' line, but my scripting isn't up to fixing
that right now!
------------------------------------------------------------------------
chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=111502
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix