I believe that DeKay is essentially saying "Do something, and then ask for help if it doesn't work".
Exactly.
I'm sorry if I offended you as I had no intention of doing so.
So you're telling me that all I need to do is:
Actually, if you read what I said, I didn't tell you to do any of this. I just asked you to try to figure it out for yourself and you went and did exactly this. That makes all the difference. Gold star.
1) enable stty on my router and implement the script
stty -F /dev/ttyS1 0:0:cbe:0:3:1c:7f:15:1:0:0:0:11:13:1a:0:12:f:17:16:4:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0
First off: stty is a command like "dir" that might or might not be built into openwrt by default. It wasn't for him when he did it, but maybe it is incorporated by default now. I don't know. If it is (try "stty -F /dev/ttyS1 -a" from the router command line). If that works, you are well on your way. If not, you either have to recompile the firmware to enable it (not for the faint of heart), use a different firmware that does have it built-in (look into dd-wrt or tomato by shibby), or stick with openwrt and do the sdcard mod and add it in using optware. This is left as an exercise for the reader, but is a fun hack and well documented on the net.
Second off: this gets done in 3) below so you don't
have to do this from the command line because it will be forgotten when the router reboots anyway. But it doesn't hurt to do as a check. Run that command, do a "stty -F /dev/ttyS1 -a" and confirm that port 1 is configured as he shows in his blog.
2) Add this script to the cron tab
*/5 * * * * /root/davissnd.sh > /dev/null
It is more accurate to say that /etc/crontab is a text file, and you are adding this line to the file.
See here.
3) And add this script to the /etc/rc.local:
stty -F /dev/ttyS1 0:0:cbe:0:3:1c:7f:15:1:0:0:0:11:13:1a:0:12:f:17:16:4:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0
lua /root/davisrcv.lua &
Again, /etc/rc.local is a text file, and you are adding the two lines above into the file. Getting the idea? Linux uses plain text files to configure tons of stuff.
4) And upload the premade and edited lua file to my router
Is that it? Or did I mix something up?
That is basically it. But you'll hit ten different roadblocks on the way when you actually try to do it for real, and you'll learn ten different things as you work to solve each of them first before asking for help.
And here is a bonus bit of info since you did your homework. On my V3 WRT54G, serial port 1 is on pins 3 and 5. You'll also need to hook into ground on either pin 9 or 10. You should check your router version since Linksys
might (or might not) have changed the pinouts on various versions. The dd-wrt wiki is really good for capturing the different hardware versions.
Edit: Corrected pins for router serial port 1.