Much of the core bits are initially ported.
This should be mostly independent of my configs, now.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
# This emulates a minimal `/etc/rc.conf` that one would create in FreeBSD to
|
||||
# hand off control to `rc.router`.
|
||||
|
||||
rc_router_dir="${RC_ROUTER_HARNESS}/.."
|
||||
rc_router_conf_dir="${RC_ROUTER_HARNESS}/../test-conf/"
|
||||
|
||||
. ${rc_router_dir}/rc.entry
|
||||
|
||||
# vim: ft=bash
|
||||
@@ -0,0 +1,29 @@
|
||||
#!/bin/sh
|
||||
|
||||
# This file exists to let me test the function of these scripts outside
|
||||
# of the FreeBSD RC environment.
|
||||
#
|
||||
# Just enough bare minimum facilities are present, to permit my rc.d scripts
|
||||
# to run. I mostly use this to test the scripts which generate configuration
|
||||
# files.
|
||||
|
||||
load_rc_config()
|
||||
{
|
||||
true
|
||||
}
|
||||
|
||||
|
||||
run_rc_command()
|
||||
{
|
||||
if [ -z "${1}" ]
|
||||
then
|
||||
echo "Error. Must supply an rc.d script command."
|
||||
exit 254
|
||||
fi
|
||||
eval \${${1}_cmd}
|
||||
}
|
||||
|
||||
|
||||
. ${RC_ROUTER_HARNESS}/etc/rc.conf
|
||||
|
||||
# vim: ft=bash
|
||||
Reference in New Issue
Block a user