Redirection in /etc/rc
Graham Menhennitt
gfm at ecs.OZ
Mon Mar 24 09:45:50 AEST 1986
In article <13400020 at mirror> rs at mirror.UUCP writes:
> In BSD4.2, is there any good reason why /etc/rc shouldn't
> have an "exec >/dev/console 2>1" at the top, and punt all
> those line-by-line redirections throughout it and rc.local?
Our company builds a 68000 based machine which runs a v7/sysIII/4.2
mixture. At one stage I altered /etc/init to make the shell that
runs /etc/rc have is stin/out/err connected to /dev/console. It
worked ok at first. At the time we were developing an intelligent
8 port RS232 board with an on-board 68000. We originally had the
local code executed from a PROM but soon decided that software
revisions were going to be fairly regular and so replaced the
PROMs with RAM. The local code is now downloaded from a UNIX file
by /etc/rc. This produces a problem with the above suggestion.
The device /dev/console is opened before the local code has been
downloaded. I didn't think of doing the "exec >/dev/console 2>1"
trick but I expect it would have worked if I had put it after
the downloading.
---------
Graham Menhennitt ACSnet: gfm at ecs.oz
Computer Systems Project Leader UUCP: seismo!mulga!ecs.oz!gfm
Email Computer Systems (L&L Australia)
More information about the Comp.unix.wizards
mailing list