mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-11-02 14:04:26 -05:00
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>
|
||
|---|---|---|
| .. | ||
| bin | ||
| etc | ||
| lib | ||
| rom | ||
| sbin | ||
| usr | ||