Use rcvar=$name syntax consistently in rc.d scripts which makes it easier to

search for rc.d scripts where rcvar differs from name. No functional change.
This commit is contained in:
sborrill 2021-11-26 12:51:24 +00:00
parent 836f4a42d7
commit 1438126a18
5 changed files with 10 additions and 10 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $NetBSD: bluetooth,v 1.1 2011/05/27 09:28:42 plunky Exp $
# $NetBSD: bluetooth,v 1.2 2021/11/26 12:51:24 sborrill Exp $
#
# PROVIDE: bluetooth
@ -10,7 +10,7 @@
$_rc_subr_loaded . /etc/rc.subr
name="bluetooth"
rcvar=${name}
rcvar=$name
start_cmd="bluetooth_start"
stop_cmd="bluetooth_stop"

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $NetBSD: envsys,v 1.4 2007/10/07 05:30:56 xtraeme Exp $
# $NetBSD: envsys,v 1.5 2021/11/26 12:51:24 sborrill Exp $
#
# PROVIDE: envsys
@ -9,7 +9,7 @@
$_rc_subr_loaded . /etc/rc.subr
name="envsys"
rcvar=${name}
rcvar=$name
command="/usr/sbin/envstat"
required_files="/etc/envsys.conf"
start_cmd="do_start"

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $NetBSD: fccache.in,v 1.4 2020/07/04 06:24:53 skrll Exp $
# $NetBSD: fccache.in,v 1.5 2021/11/26 12:51:24 sborrill Exp $
#
# PROVIDE: fccache
@ -10,7 +10,7 @@
$_rc_subr_loaded . /etc/rc.subr
name="fccache"
rcvar=${name}
rcvar=$name
command="@X11ROOTDIR@/bin/fc-cache"
start_cmd="fccache_start"
stop_cmd=":"

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $NetBSD: ldconfig,v 1.8 2004/08/13 18:08:03 mycroft Exp $
# $NetBSD: ldconfig,v 1.9 2021/11/26 12:51:24 sborrill Exp $
#
# PROVIDE: ldconfig
@ -10,7 +10,7 @@
$_rc_subr_loaded . /etc/rc.subr
name="ldconfig"
rcvar="ldconfig"
rcvar=$name
ldconfig_command="/sbin/ldconfig"
start_cmd="ldconfig_start"
stop_cmd=":"

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $NetBSD: quota,v 1.5 2004/08/13 18:08:03 mycroft Exp $
# $NetBSD: quota,v 1.6 2021/11/26 12:51:24 sborrill Exp $
#
# PROVIDE: quota
@ -10,7 +10,7 @@
$_rc_subr_loaded . /etc/rc.subr
name="quota"
rcvar="quota"
rcvar=$name
start_cmd="quota_start"
stop_cmd="/usr/sbin/quotaoff -a"