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,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