Subject: Re: /etc/rc with #!/bin/sh ?
To: Gandhi woulda smacked you <greywolf@starwolf.com>
From: Erik E. Fair <fair@clock.org>
List: current-users
Date: 06/30/1999 13:13:14
At 0:58 -0700 6/23/99, Gandhi woulda smacked you wrote:
>Also, /sbin/init (I keep wanting to type /etc/init -- don'tcha just love
>legacy systems?) explicitly calls
> execv(_PATH_BSHELL, ("sh", "/etc/rc", autoboot? "autoboot": 0, 0));
Actually, this is an anachronism given that execve(2) deals with the #!
magic number. I'd argue that init should simply execv("/etc/rc") without
reference to "sh" - that way, if someone ever wants to change the script to
something else, they can.
catching up on current-users,
Erik