mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-28 03:42:04 +01:00
If amd_flags is empty, don't add -p as it makes amd abend.
This commit is contained in:
parent
a14b1bb88a
commit
f30751c163
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user