openwrt: configure /dev/ttyS0 with -echo -onlcr params
This commit is contained in:
parent
a2e6ef8d9f
commit
afeea3e5f0
|
@ -5,7 +5,7 @@
|
||||||
START=98
|
START=98
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
stty 4800 < /dev/ttyS0
|
stty 4800 -echo -onlcr < /dev/ttyS0
|
||||||
/usr/share/lua/flukso/flukso.lua >&- 2>&- <&- &
|
/usr/share/lua/flukso/flukso.lua >&- 2>&- <&- &
|
||||||
/usr/share/lua/flukso/heartbeat.lua 1 >&- 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 -
|
echo -e "$(date '+%M') * * * * /usr/share/lua/flukso/heartbeat.lua 0\n"'*/15 * * * * [ -z "$(ps | grep '\'flukso.lu[a]\'')" ] && reboot' | crontab -
|
||||||
|
|
Loading…
Reference in New Issue