`track_script` and `vrrp_script` are both sections that run custom scripts
which handle priority of a vrrp_instance.
`track_script` is not supported by this uci implementation
`vrrp_instance` was still trying to fetch config for track_script from section
'track_script'.
After the changes, when listing track_script in vrrp_instance,
it tries to fetch config from section `vrrp_script` which is supported.
Signed-off-by: Rishabh <redacted>
[ -z "$optval" ] && continue
config_section_open "$opt" "" "$INDENT_1"
for t in $optval; do
- config_foreach print_track_script_indent track_script "$t" "$INDENT_2"
+ config_foreach print_track_script_indent vrrp_script "$t" "$INDENT_2"
done
config_section_close "$INDENT_1"
done