简体   繁体   中英

embedded linux, tty not working during boot

I'm writing a software to test some peripherals on my device. I have to check some tty devices, so I writed a C binary that writes and reads from a given tty. It works perfectly called from command line, but it doesn't work if called from an init.d script. Any ideas?

Login prompt appears after start-up scripts are executed - that is why they are called start-up scripts.

I am not sure changing the order would be wise and safe. I would probably wait (sleep) for a while. Just don't forget to run your program in the background mode, otherwise it'll block boot process:

my_test_tty_program &

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM