diff options
author | rse <rse@FreeBSD.org> | 2002-09-18 08:49:50 +0000 |
---|---|---|
committer | rse <rse@FreeBSD.org> | 2002-09-18 08:49:50 +0000 |
commit | 3b0f5df300aab6670942c0704c2106ff3c4224a2 (patch) | |
tree | fba794a1b5aaea2fc34a18bf6d9f4f5cf941c9d9 /etc/rc.d/amd | |
parent | aeb98331c1a874e05cc0e4d1ab335e18db4fced3 (diff) | |
download | FreeBSD-src-3b0f5df300aab6670942c0704c2106ff3c4224a2.zip FreeBSD-src-3b0f5df300aab6670942c0704c2106ff3c4224a2.tar.gz |
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.
Diffstat (limited to 'etc/rc.d/amd')
-rwxr-xr-x | etc/rc.d/amd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.d/amd b/etc/rc.d/amd index 88e1dd7..10b38c4 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 ;; |