summaryrefslogtreecommitdiffstats
path: root/etc/network.subr
diff options
context:
space:
mode:
authordougb <dougb@FreeBSD.org>2002-04-01 18:33:45 +0000
committerdougb <dougb@FreeBSD.org>2002-04-01 18:33:45 +0000
commit3b51c999a4127262c5bac34974cb1dc289858668 (patch)
treeb32868b7eaa054d51f4e7befd22354ef05bcaf75 /etc/network.subr
parent810e37cb5c02fb8c8d7a5aae4ef0fb5b2da85f72 (diff)
downloadFreeBSD-src-3b51c999a4127262c5bac34974cb1dc289858668.zip
FreeBSD-src-3b51c999a4127262c5bac34974cb1dc289858668.tar.gz
The good news is that my initial PR was correct... the bad news is that I
was apparently smoking something when I committed the last fix, because as ume was kindly enough to set me straight on, amd *will* start with no arguments at all, as long as there is an /etc/amd.conf file for it to read. What it won't do is start with *just* -p. In any case, now it's fixed.
Diffstat (limited to 'etc/network.subr')
-rw-r--r--etc/network.subr6
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/network.subr b/etc/network.subr
index eabdd0b..8d779ea 100644
--- a/etc/network.subr
+++ b/etc/network.subr
@@ -757,8 +757,12 @@ network_pass3() {
case "${amd_flags}" in
'')
- echo ''
+ if [ -r /etc/amd.conf ]; then
+ amd &
+ else
+ echo ''
echo 'Warning: amd will not load without arguments'
+ fi
;;
*)
amd -p ${amd_flags} \
OpenPOWER on IntegriCloud