diff options
author | phk <phk@FreeBSD.org> | 1998-04-26 06:32:13 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1998-04-26 06:32:13 +0000 |
commit | de32d1b3381d19341c0adf0f1061d190fe6e349a (patch) | |
tree | f080025226c946629c7cc03cc17f618f1a80e348 /etc/network.subr | |
parent | 188299fe30533b80d335bd251b1fbdfebd411896 (diff) | |
download | FreeBSD-src-de32d1b3381d19341c0adf0f1061d190fe6e349a.zip FreeBSD-src-de32d1b3381d19341c0adf0f1061d190fe6e349a.tar.gz |
Jean-Simon Pendry's paper on amd refers to the use of "ypcat -k"
against the "master map" to get the list of mount point/amd map
correspondences, and using that list as command-line arguments to start
amd.
When I tried to do this with the existing /etc/rc* scripts, I found that
I couldn't do this by modifying only /etc/rc.conf: that file gets
sourced very early by /etc/rc, well before any networking functionality
is present, let alone NIS. Further, I wasn't able to figure out a way
to use various levels & types of quoting to defer evaluation of the
string to a point subsequent to NIS initialization.
As a result, I resorted to hacking /etc/rc.network -- but I did it in a
way that ought to be reasonably general, and avoid breakage for anyone
else.
PR: 6387
Reviewed by: phk
Submitted by: David Wolfskill <dhw@whistle.com>
Diffstat (limited to 'etc/network.subr')
-rw-r--r-- | etc/network.subr | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/network.subr b/etc/network.subr index e43b9d4..9e0211f0 100644 --- a/etc/network.subr +++ b/etc/network.subr @@ -1,6 +1,6 @@ #!/bin/sh - # -# $Id: rc.network,v 1.21 1998/04/12 09:47:43 markm Exp $ +# $Id: rc.network,v 1.22 1998/04/18 10:27:06 brian Exp $ # From: @(#)netstart 5.9 (Berkeley) 3/30/91 # Note that almost all the user-configurable behavior is no longer in @@ -238,6 +238,9 @@ network_pass3() { if [ "X${amd_enable}" = X"YES" ]; then echo -n ' amd' + if [ "X${amd_map_program}" != X"NO" ]; then + amd_flags="${amd_flags} `${amd_map_program}`" + fi amd -p ${amd_flags} > /var/run/amd.pid 2> /dev/null fi |