diff options
Diffstat (limited to 'etc/rc.d/routing')
-rw-r--r-- | etc/rc.d/routing | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/etc/rc.d/routing b/etc/rc.d/routing index 58cbc78..0a40acc 100644 --- a/etc/rc.d/routing +++ b/etc/rc.d/routing @@ -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 |