Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc/rc.d Use rcvar=$name syntax consistently in rc.d scripts...
details: https://anonhg.NetBSD.org/src/rev/32f24318c796
branches: trunk
changeset: 1026481:32f24318c796
user: sborrill <sborrill%NetBSD.org@localhost>
date: Fri Nov 26 12:51:24 2021 +0000
description:
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.
diffstat:
etc/rc.d/bluetooth | 4 ++--
etc/rc.d/envsys | 4 ++--
etc/rc.d/fccache.in | 4 ++--
etc/rc.d/ldconfig | 4 ++--
etc/rc.d/quota | 4 ++--
5 files changed, 10 insertions(+), 10 deletions(-)
diffs (100 lines):
diff -r c89f33ea7dfd -r 32f24318c796 etc/rc.d/bluetooth
--- a/etc/rc.d/bluetooth Fri Nov 26 09:05:05 2021 +0000
+++ b/etc/rc.d/bluetooth Fri Nov 26 12:51:24 2021 +0000
@@ -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"
diff -r c89f33ea7dfd -r 32f24318c796 etc/rc.d/envsys
--- a/etc/rc.d/envsys Fri Nov 26 09:05:05 2021 +0000
+++ b/etc/rc.d/envsys Fri Nov 26 12:51:24 2021 +0000
@@ -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"
diff -r c89f33ea7dfd -r 32f24318c796 etc/rc.d/fccache.in
--- a/etc/rc.d/fccache.in Fri Nov 26 09:05:05 2021 +0000
+++ b/etc/rc.d/fccache.in Fri Nov 26 12:51:24 2021 +0000
@@ -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=":"
diff -r c89f33ea7dfd -r 32f24318c796 etc/rc.d/ldconfig
--- a/etc/rc.d/ldconfig Fri Nov 26 09:05:05 2021 +0000
+++ b/etc/rc.d/ldconfig Fri Nov 26 12:51:24 2021 +0000
@@ -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=":"
diff -r c89f33ea7dfd -r 32f24318c796 etc/rc.d/quota
--- a/etc/rc.d/quota Fri Nov 26 09:05:05 2021 +0000
+++ b/etc/rc.d/quota Fri Nov 26 12:51:24 2021 +0000
@@ -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"
Home |
Main Index |
Thread Index |
Old Index