bird1: rename get_bool() to get_a_bool() in bird{4,6}-lib.sh
authorRoger Pueyo Centelles <roger.pueyo@guifi.net>
Sun, 26 Feb 2023 16:02:08 +0000 (17:02 +0100)
committerRoger Pueyo Centelles <roger.pueyo@guifi.net>
Wed, 8 Mar 2023 21:19:17 +0000 (22:19 +0100)
commit258826e83a18046ec9cd78e6d6abb34c784bc3c2
tree5804184c42bf2a1d82ff8768e640c3b1a5b97f9f
parent7830857eeedd74718fcf17feaf9d9d9e377dfaba
bird1: rename get_bool() to get_a_bool() in bird{4,6}-lib.sh

This patch renames the get_bool() function, implemented in the
bird4-lib.sh and bird6-lib.sh files (respectively, for the IPv4 and
the IPv6 versions of the package), as well as all the calls to it.
This way, we avoid a function name collision with the one provided by
file /lib/functions.sh, which is slightly different and caused an
out-of-memory error when parsing the bird4/bird6 UCI config files.

Fixes #920.

Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
(cherry picked from commit d32f93e0499164ac171228bbb6e8a5b17b8785fe)
bird1-openwrt/Makefile
bird1-openwrt/bird1-ipv4-openwrt/src/init.d/bird4-lib.sh
bird1-openwrt/bird1-ipv6-openwrt/src/init.d/bird6-lib.sh