[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: local initialization (/root/setup.sh, /bin/setup.sh)



On Fri, Aug 13, 1999 at 12:26:36AM -0300, Julio wrote:
> In potato, /etc/init.d/rcS ends with the following lines:
> 
> if [ -x /sbin/setup.sh ]
> then
>    /sbin/setup.sh
> fi
> 
> The same file on slink calls /root/setup.sh. It seems these scripts are 
> reserved for particular configurations on each machine. But they don't seem 
> to be a good solution for the local initialization problem. The FHS doesn't 
> appear to have a proposal to address this problem. Would be ok for debian 
> to run-parts a dir as /etc/rc.local from /etc/init.d/rcS?

They aren't for machine specific configuration; they're used when installing:
line 15:
#
#       See if system needs to be setup. This is ONLY meant to
#       be used for the initial setup after a fresh installation!
#
if [ -x /sbin/unconfigured.sh ]
then
  /sbin/unconfigured.sh
fi

and then, directly above the lines you cite:
#
#       Finish setup if needed. The comment above about
#       /sbin/unconfigured.sh applies here as well!
#

If you want to do machine specific configuration, I'm not sure what the
approved way is.  Personally, I created /etc/init.d/rc.local to hold them,
and used update-rc.d rc.local defaults to make sure that it gets run right,
but I don't know if there's a better way to do this.  Thoughts?

-- Nathaniel


Reply to: