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:
parent
99571dc345
commit
25ade111dc
@ -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
|
||||
;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user