aboutsummaryrefslogtreecommitdiff
path: root/etc/network.subr
diff options
context:
space:
mode:
authorDoug Barton <dougb@FreeBSD.org>2002-03-17 07:35:51 +0000
committerDoug Barton <dougb@FreeBSD.org>2002-03-17 07:35:51 +0000
commit4072b4a6a1cbc68a6492f4f0c22f0d8e9710342a (patch)
treea00c7638cb1c1c5ccc586f66177313765351e244 /etc/network.subr
parent0874402d9e4de91ce301eb7f54501e1e54f4cd4a (diff)
downloadsrc-4072b4a6a1cbc68a6492f4f0c22f0d8e9710342a.tar.gz
src-4072b4a6a1cbc68a6492f4f0c22f0d8e9710342a.zip
Answer the question posed in 1.126. amd won't start without either a
conf file, or command line options. I brought this up in PR 12432, which (ironically) obrien assigned to me after I became a committer. :) PR: conf/12432 Submitted by: Me
Notes
Notes: svn path=/head/; revision=92478
Diffstat (limited to 'etc/network.subr')
-rw-r--r--etc/network.subr13
1 files changed, 11 insertions, 2 deletions
diff --git a/etc/network.subr b/etc/network.subr
index 426ec2f0a012..2146b9057b99 100644
--- a/etc/network.subr
+++ b/etc/network.subr
@@ -753,8 +753,17 @@ network_pass3() {
;;
esac
- amd -p ${amd_flags} > /var/run/amd.pid \
- 2> /dev/null &
+ case "${amd_flags}" in
+ '')
+ echo ''
+ echo 'Warning: amd will not load without arguments'
+ ;;
+ *)
+ amd -p ${amd_flags} \
+ >/var/run/amd.pid \
+ 2>/dev/null &
+ ;;
+ esac
;;
esac
else