summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/network2
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-06-08 13:00:30 +0000
committerbrian <brian@FreeBSD.org>1999-06-08 13:00:30 +0000
commitf30751c163814b434778611b74a47da97079dd02 (patch)
tree717c5062055f418368a36246f9ef7f3b39602d2b /etc/rc.d/network2
parenta14b1bb88a8829d26a846e2479812aa1ed5685ab (diff)
downloadFreeBSD-src-f30751c163814b434778611b74a47da97079dd02.zip
FreeBSD-src-f30751c163814b434778611b74a47da97079dd02.tar.gz
If amd_flags is empty, don't add -p as it makes amd abend.
Diffstat (limited to 'etc/rc.d/network2')
-rw-r--r--etc/rc.d/network29
1 files changed, 7 insertions, 2 deletions
diff --git a/etc/rc.d/network2 b/etc/rc.d/network2
index 58cbc78..0a40acc 100644
--- a/etc/rc.d/network2
+++ b/etc/rc.d/network2
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $Id: rc.network,v 1.45 1999/06/05 05:45:47 phk Exp $
+# $Id: rc.network,v 1.46 1999/06/05 12:06:19 bde Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
# Note that almost all the user-configurable behavior is no longer in
@@ -315,7 +315,12 @@ network_pass3() {
if [ "X${amd_map_program}" != X"NO" ]; then
amd_flags="${amd_flags} `eval ${amd_map_program}`"
fi
- amd -p ${amd_flags} > /var/run/amd.pid 2> /dev/null
+ if [ -n "$amd_flags" ]
+ then
+ amd -p ${amd_flags} > /var/run/amd.pid 2> /dev/null
+ else
+ amd 2> /dev/null
+ fi
fi
if [ "X${rwhod_enable}" = X"YES" ]; then
OpenPOWER on IntegriCloud