summaryrefslogtreecommitdiffstats
path: root/etc/rc.d
diff options
context:
space:
mode:
authorgordon <gordon@FreeBSD.org>2002-09-05 20:14:46 +0000
committergordon <gordon@FreeBSD.org>2002-09-05 20:14:46 +0000
commit190ae3a6ce9954519f6872953ff764e4797e9da6 (patch)
tree2ecf7aa681f1a100b1ca4cb6efeed28add8770de /etc/rc.d
parent58f67268dfe45f4ceaf9573e37063e5ee431e691 (diff)
downloadFreeBSD-src-190ae3a6ce9954519f6872953ff764e4797e9da6.zip
FreeBSD-src-190ae3a6ce9954519f6872953ff764e4797e9da6.tar.gz
Introduce bootparamd into the boot scripts. Add a bootparamd_enable and
_flags to rc.conf Submitted by: John Hay <jhay@zibbi.icomtek.csir.co.za>
Diffstat (limited to 'etc/rc.d')
-rwxr-xr-xetc/rc.d/bootparams13
1 files changed, 11 insertions, 2 deletions
diff --git a/etc/rc.d/bootparams b/etc/rc.d/bootparams
index 3afbd76..5db3b46 100755
--- a/etc/rc.d/bootparams
+++ b/etc/rc.d/bootparams
@@ -7,13 +7,22 @@
# PROVIDE: bootparams
# REQUIRE: rpcbind DAEMON
# BEFORE: LOGIN
+# KEYWORD: FreeBSD
. /etc/rc.subr
name="bootparamd"
-rcvar=$name
-command="/usr/sbin/rpc.${name}"
+rcvar=`set_rcvar`
required_files="/etc/bootparams"
+case `${CMD_OSTYPE}` in
+FreeBSD)
+ command="/usr/sbin/${name}"
+ ;;
+NetBSD)
+ command="/usr/sbin/rpc.${name}"
+ ;;
+esac
+
load_rc_config $name
run_rc_command "$1"
OpenPOWER on IntegriCloud