From 25ade111dc809bcfc48fdfd4ba4471ffa4ec1414 Mon Sep 17 00:00:00 2001 From: "Ralf S. Engelschall" Date: Wed, 18 Sep 2002 08:49:50 +0000 Subject: [PATCH] Fix implementation of rc variables $amd_flags and $amd_map_program in rcNG. The $amd_flags variable was already taken over into $rc_flags by run_rc_command() when amd_precmd() is executed, so changing $amd_flags there no longer effects the actual execution of amd. Hence in amd_precmd() the $rc_flags have to be adjusted instead. --- etc/rc.d/amd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/rc.d/amd b/etc/rc.d/amd index 88e1dd7246a..10b38c47b6d 100755 --- a/etc/rc.d/amd +++ b/etc/rc.d/amd @@ -46,7 +46,7 @@ amd_precmd() [Nn][Oo] | '') ;; *) - amd_flags="${amd_flags} `eval ${amd_map_program}`" + rc_flags="${rc_flags} `eval ${amd_map_program}`" ;; esac @@ -58,7 +58,7 @@ amd_precmd() fi ;; *) - amd_flags="-p ${amd_flags} > /var/run/amd.pid 2> /dev/null" \ + rc_flags="-p ${rc_flags} > /var/run/amd.pid 2> /dev/null" \ ;; esac ;;