--- In "whiffwaffle" <> wrote:
>
>
> What is the proper way to automatically run my user program at boot
> on a 7400?
>
> I've been messing with the /etc/rcX.d...
>
> [Snipped]
>
> Any suggestions?
>
Instead of "messing" with /etc/rcX.d try carefully modifying /etc/inittab
Read to the bottom of this email before you make any changes though.
There you can manipulate the getty's for the console port. My example
won't cover everything you've asked for but I'm interested in helping
you get started to see if this gets you far enough that you get the
auto login to happen once but not subsequent times.
Example (from a TS-7300):
1:2345:respawn:/sbin/getty 38400 tty1
A TS-7400 will use a different device, like ttyAM0 - I don't recall
exactly but find the line that matches the port the console is on.
Change it to something like:
1:2345:respawn:/root/termctrl_getty.sh
My termctrl_getty.sh is:
#!/bin/bash
echo "termctrl_getty: Starting program..." >/dev/<console_device>
/root/<yourprogram>
/sbin/getty 38400 <console_device>
#End of termctrl_getty.sh
Substitute <console_device> appropriately for the TS-7400. Substitute
<yourprogram>.
Change the mode on the termctrl_getty.sh file to execute:
chmod +x /root/termctrl_getty.sh
It's a good idea to have the script already in place and change the
inittab last so that if you had a reboot occur before you finished
it's creation you wouldn't lose access to the console port.
I have a TS-7400 so I can follow up with specifics on it when I get
the time and have it in front of me.
Andy
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|