From afeea3e5f0d81bc1adf0abe254e11dfc3aabaded Mon Sep 17 00:00:00 2001 From: Bart Van Der Meerssche Date: Mon, 20 Sep 2010 21:01:46 +0200 Subject: [PATCH] openwrt: configure /dev/ttyS0 with -echo -onlcr params --- mote/v1/openwrt/package/flukso/src/flukso.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mote/v1/openwrt/package/flukso/src/flukso.init b/mote/v1/openwrt/package/flukso/src/flukso.init index 35d6066..4d6f5f0 100755 --- a/mote/v1/openwrt/package/flukso/src/flukso.init +++ b/mote/v1/openwrt/package/flukso/src/flukso.init @@ -5,7 +5,7 @@ START=98 start() { - stty 4800 < /dev/ttyS0 + stty 4800 -echo -onlcr < /dev/ttyS0 /usr/share/lua/flukso/flukso.lua >&- 2>&- <&- & /usr/share/lua/flukso/heartbeat.lua 1 >&- 2>&- <&- echo -e "$(date '+%M') * * * * /usr/share/lua/flukso/heartbeat.lua 0\n"'*/15 * * * * [ -z "$(ps | grep '\'flukso.lu[a]\'')" ] && reboot' | crontab -