Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc/rc.d Complain if $amd_master is set. This variable was u...



details:   https://anonhg.NetBSD.org/src/rev/4326306de9d6
branches:  trunk
changeset: 511299:4326306de9d6
user:      lukem <lukem%NetBSD.org@localhost>
date:      Sun Jun 17 01:05:40 2001 +0000

description:
Complain if $amd_master is set. This variable was used in 1.5 and prior
releases, but has been ignored since an am-utils update six months ago.
This fixes [misc/11971] submitted by Jun-ichiro itojun Hagino.  (Note that
$amd_flags is still supported, contrary to what the PR says).

diffstat:

 etc/rc.d/amd |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (32 lines):

diff -r 574fe64bcbef -r 4326306de9d6 etc/rc.d/amd
--- a/etc/rc.d/amd      Sun Jun 17 00:48:28 2001 +0000
+++ b/etc/rc.d/amd      Sun Jun 17 01:05:40 2001 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: amd,v 1.7 2000/11/21 12:20:12 veego Exp $
+# $NetBSD: amd,v 1.8 2001/06/17 01:05:40 lukem Exp $
 #
 
 # PROVIDE: amd
@@ -11,6 +11,7 @@
 name="amd"
 rcvar=$name
 command="/usr/sbin/${name}"
+start_precmd="amd_precmd"
 load_rc_config $name
 
 command_args='-p -a '$amd_dir' -F /etc/amd.conf >/var/run/amd.pid'
@@ -18,4 +19,12 @@
 required_dirs="$amd_dir"
 required_vars="rpcbind"
 
+amd_precmd()
+{
+       if [ -n "$amd_master" ]; then
+               warn "\$amd_master has been deprecated."
+               return 1
+       fi
+}
+
 run_rc_command "$1"



Home | Main Index | Thread Index | Old Index