Hi,

I have a serial LCD Screen connected to ttyS3.

It needs to be initialised once before being usable (I only need to send 
it a U character).

So I wrote this tiny script:
#!/bin/sh
/bin/stty -F /dev/ttyS3 115200 raw
/bin/sleep 1
/bin/echo -n U > /dev/ttyS3
/bin/touch /mnt/flash/LCD.ok

If I connect to the fox (using ssh) and execute this script the LCD gets 
initialized. BUT if i execute it by putting it in /etc/boottime, in 
/etc/profile.d or via a runonce line in /etc/inittab the screen doesn't 
get initialized.

Am I doing something wrong or is there something special I don't know 
about serial ports initialization ?

Regards,
-- 
Xavier Garreau
http://www.xgarreau.org/

Reply via email to