Subject: Re: init SMALLPROG
To: Brian Rose <lists@brianrose.net>
From: Matt Thomas <matt@3am-software.com>
List: netbsd-users
Date: 09/17/2006 18:27:50
Brian Rose wrote:
> 
> I have built an init program using the SMALLPROG define so that I can
> have an embedded system without all the hubub of a full multiuser setup.
> Everything is working fine, and when the kernel is done booting, it
> leaves the console with the shell prompt.
> 
> Is there a way to have it run a program or script (like /etc/rc) in this
> SMALLPROG configuration? Ideally it would be without altering the source
> code.

/.profile is automatically run by /bin/sh

(that's how sysinst is started)