transmission: retrieve boolean config opts using `config_get_bool` 20484/head
authorSalim B <git@salim.space>
Sun, 12 Feb 2023 21:20:00 +0000 (22:20 +0100)
committerSalim B <git@salim.space>
Mon, 13 Feb 2023 00:50:52 +0000 (01:50 +0100)
commit63dc13d7d2f5150bf3cf4b6648d8c7f10975381f
treed8b412718738e8dd6e1ef1ca7795cccd462f4b3e
parent0876220ba4d2ec3a414328ee0e462e8cc325d039
transmission: retrieve boolean config opts using `config_get_bool`

The tranmission UCI config options

- `config_overwrite`
- `incomplete_dir_enabled`
- `watch_dir_enabled`

are all booleans, so we have to retrieve them using `config_get_bool` in order
to make sure they are properly interpreted in case the user sets them to a
keyword (`true`/`false`, `on`/`off` etc.) and not an integer (`0`/`1`).

Signed-off-by: Salim B <git@salim.space>
net/transmission/files/transmission.init