openwrt/package/base-files
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
..
files base-files: allow reusing of boolean value extraction logic 2021-01-01 10:23:56 -10:00
Makefile base-files: allow reusing of boolean value extraction logic 2021-01-01 10:23:56 -10:00
image-config.in build: switch VERSION_REPO to HTTPS 2020-08-31 11:26:10 +01:00