NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
h8ohmh
May 09, 2021Follower
Shell script for displaying RN 214 LCD messages
Hi everyone,
I made a small ssh shell script for displaying texts on Readynas 214 (or 204) OS6.0.xx LCD Display (e.g. for messages of an end of a ssh shell programm). Have fun with it!
Name it as you want (e.g. lcd_text.sh).
#!/bin/bash #by h8ohmh MSG="${1}" DURATION="${2}" UNK="$3" if [[ -z "$UNK" ]]; then UNK=478 fi /usr/bin/rnutil rn_lcd -s "$MSG" -p 1 -e $DURATION -k $UNK exit 0
usage example:
lcd_text.sh "blabla" 10 "unknown"
(10 for 10 seconds)
11 Replies
thx for sharing.
- SandsharkSensei
Any reason you say this is for the 214/204 and not generic for all OS6 units with an LCD? It works on a 516 as well.
Where did you find documentation on the commands for rn_lcd? It doesn't seem to have any help available.
Messing around with it a bit, P seems to be a page designator. I though K could be related to how it cycles between pages, and I did have it cycling between two messages, but I've not fully figured it out. If it's a number, it definately has an effect on the duration.
- 8ohmhGuideI got that command analyzing /etc on ReadyNas OS ssh shell. So far have you tried all -h or --help commands with that rn_lcd? In any case try to use "od" command for examining /sbin/ /bin/ and so on. As far as the ReadyNas team have no explicit command for accessing the LCD my script is the best solution instead of installing a huge GB development environtment on the NAS and a PC... As I wrote: No one has to use it, it's free and it does no harm: it relies only on the ReadyNas OS content! You can use even a blinking messages with a shell for ... do; done loop (one lcd cmd displays text for 3s the other one no)
- SandsharkSensei
Yeah, I tried all possible help options and got nothing. rnutil itself has a main help screen, but nothing for that subcommand I can find. I may move a NAS with a display into the same room as my computer desk so I can experiment more. Examining rnutil with a hex editor shows options and error messages for some sub-commands, but none for rn_lcd. It doesn't even complain if K is a number or string.
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!