I am currently automatically execute a script on boot that will run some tests on an embedded device. My actual goal is to have this menu running 100% of the time without any sort of keyboard input needed, with other ttys disabled. Not so much for security as to deter the casually curious users from poking around.
So ... I am trying to have the machine, after booting present the user with a console based menu on ttyv0 (using sh and dialog). The menu runs correctly when started on a (manually) logged in console.
I tried a line like this in /etc/ttys:
What I noticed was the script executed (i could see it in ps), but the dialog interaction wasn't on the tty I was looking at (or any tty I could see, for that matter)
As an aside I plan to use:
to suppress console noise about things being plugged or whatever else and munging the display.
Thanks for any input. I have been stuck on this for some time now.
So ... I am trying to have the machine, after booting present the user with a console based menu on ttyv0 (using sh and dialog). The menu runs correctly when started on a (manually) logged in console.
I tried a line like this in /etc/ttys:
Code:
ttyv5 "/root/test.sh" cons25 on secure
What I noticed was the script executed (i could see it in ps), but the dialog interaction wasn't on the tty I was looking at (or any tty I could see, for that matter)
As an aside I plan to use:
Code:
conscontrol mute on
to suppress console noise about things being plugged or whatever else and munging the display.
Thanks for any input. I have been stuck on this for some time now.