Add "initialize" to loader.4th, so running "start" is not actually needed.
This commit is contained in:
parent
4bc71ceab3
commit
c4b16f49fc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=47198
@ -22,7 +22,7 @@
|
||||
\ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
\ SUCH DAMAGE.
|
||||
\
|
||||
\ $Id: loader.4th,v 1.1 1999/03/09 14:06:55 dcs Exp $
|
||||
\ $Id: loader.4th,v 1.2 1999/04/24 17:25:25 dcs Exp $
|
||||
|
||||
include /boot/support.4th
|
||||
|
||||
@ -55,6 +55,18 @@ only forth definitions also support-functions
|
||||
then
|
||||
;
|
||||
|
||||
\ ***** initialize
|
||||
\
|
||||
\ Overrides support.4th initialization word with one that does
|
||||
\ everything start one does, short of loading the kernel and
|
||||
\ modules. Returns a flag
|
||||
|
||||
: initialize ( -- flag )
|
||||
s" /boot/defaults/loader.conf" initialize
|
||||
include_conf_files
|
||||
any_conf_read?
|
||||
;
|
||||
|
||||
\ ***** read-conf
|
||||
\
|
||||
\ Read a configuration file, whose name was specified on the command
|
||||
@ -189,4 +201,4 @@ only forth definitions also support-functions
|
||||
\ Return to strict forth vocabulary
|
||||
|
||||
only forth also
|
||||
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" $Id: loader.4th.8,v 1.1 1999/04/24 17:25:25 dcs Exp $
|
||||
.\" $Id: loader.4th.8,v 1.2 1999/05/03 07:25:50 jkoshy Exp $
|
||||
.\"
|
||||
.\" Note: The date here should be updated whenever a non-trivial
|
||||
.\" change is made to the manual page.
|
||||
@ -87,6 +87,18 @@ command (see
|
||||
.Xr loader 8 ),
|
||||
so it can be stopped for further interaction with
|
||||
.Xr loader 8 .
|
||||
.It Ic initialize
|
||||
Initialize the supporting library so commands can be used without
|
||||
executing
|
||||
.Ic start
|
||||
first. Like
|
||||
.Ic start ,
|
||||
reads
|
||||
.Pa /boot/defaults/loader.conf
|
||||
and all other
|
||||
.Xr loader.conf 5
|
||||
files specified in it. Returns a flag on the stack to indicate
|
||||
if any configuration file was succesfully loaded.
|
||||
.It Ic read-conf Ar filename
|
||||
Reads and processes a
|
||||
.Xr loader.conf 5
|
||||
|
Loading…
Reference in New Issue
Block a user