3 # This UCI-Defaults script will MOVE any pre-existing filter
4 # stored in a file and configured as an UCI item (deprecated)
5 # The script will try to match any "filter" Section, get its
6 # "file_path" property and move the file (if exists) to the
7 # new (v0.3+) default location: /etc/bird{4|6}/filters
14 # This function will move an existing folder configured on
15 # Bird as a "filter" to filters' folder.
19 config_get file_path
${section} file_path
21 if [ -f ${file_path} ]; then
22 mv ${file_path} /etc
/${BIRD}/filters
/
24 uci delete
${BIRD}.
${section}
27 if [ -f /etc
/config
/${BIRD} ]; then
29 config_foreach mv_filter
'filter'