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.
This commit is contained in:
Ralf S. Engelschall 2002-09-18 08:49:50 +00:00
parent 99571dc345
commit 25ade111dc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=103532

View File

@ -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
;;