openwrt/package/base-files/files/lib
Oldřich Jedlička 49d678f0d2 base-files: allow reusing of boolean value extraction logic
The `functions.sh` script has `config_get_bool()` function, which is
usable when using UCI config direct access API, but there is no
equivalent for the callback API. Introduce `get_bool()` function to
allow reusing it from init scripts.

Example:

```sh
option_cb() {
    local option="$1"
    local value="$(get_bool "$2")"
    ...
}
```

Signed-off-by: Oldřich Jedlička <oldium.pro@gmail.com>
2021-01-01 10:23:56 -10:00
..
functions package/base-files: caldata: use dd iflag fullblock 2020-12-11 13:48:24 +01:00
preinit base-files: merge /etc/passwd on rw-rootfs 2020-11-27 09:59:14 +00:00
upgrade base-files: flush kernel memory cache during sysupgrade 2020-12-22 18:59:10 +01:00
functions.sh base-files: allow reusing of boolean value extraction logic 2021-01-01 10:23:56 -10:00