openwrt-mirror/package/base-files/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
..
bin base-files: allow setting device and bridge macs 2020-12-02 07:51:36 +01: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-03 23:28:43 -10:00
lib base-files: allow reusing of boolean value extraction logic 2021-01-01 10:23:56 -10:00
rom rename default/ to files/ 2006-11-22 23:30:57 +00:00
sbin base-files: sysupgrade: add function for conffiles retrieval 2020-12-30 00:00:13 +01:00
usr base-files: validate firmware for compatibility with backup 2019-09-08 09:10:30 +02:00