immortalwrt/package/base-files
Oldřich Jedlička db6df604f7
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-02 12:04:53 +08:00
..
files base-files: allow reusing of boolean value extraction logic 2021-01-02 12:04:53 +08:00
image-config.in build: switch VERSION_REPO to HTTPS 2020-09-01 17:33:44 +08:00
Makefile base-files: allow reusing of boolean value extraction logic 2021-01-02 12:04:53 +08:00