Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!gamma!epsilon!zeta!sabre!petrus!scherzo!allegra!mit-eddie!think!harvard!seismo!munnari!mulga!ecs!gfm From: gfm@ecs.OZ (Graham Menhennitt) Newsgroups: net.unix-wizards Subject: Re: Redirection in /etc/rc Message-ID: <122@ecs.OZ> Date: Sun, 23-Mar-86 18:45:50 EST Article-I.D.: ecs.122 Posted: Sun Mar 23 18:45:50 1986 Date-Received: Tue, 25-Mar-86 05:12:56 EST References: <13400020@mirror> Reply-To: gfm@ecs.UUCP (Graham Menhennitt) Organization: Email Computer Systems, Melbourne, Australia. Lines: 23 In article <13400020@mirror> rs@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@ecs.oz Computer Systems Project Leader UUCP: seismo!mulga!ecs.oz!gfm Email Computer Systems (L&L Australia)