immortalwrt/package/base-files/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
..
bin Revert "base-files: do not generate ULA prefix" 2021-01-02 11:49:45 +08:00
etc base-files: informative service command in /etc/shinit. service command shows services enabled/disabled and running status, when the service command is invoked with no/invalid arguments, like this: 2020-12-05 17:37:31 +08:00
lib base-files: allow reusing of boolean value extraction logic 2021-01-02 12:04:53 +08:00
rom fix permission 2019-09-30 14:27:46 +08:00
sbin base-files: sysupgrade: add function for conffiles retrieval 2020-12-31 17:49:08 +08:00
usr dropbear: bump to 2019.78 2020-03-22 18:35:41 +08:00