1
0
mirror of https://github.com/freifunk-gluon/packages.git synced 2024-06-13 10:49:17 +02:00
Commit Graph

4 Commits

Author SHA1 Message Date
Matthias Schiffer
6d2b807fba
lua-simple-uci: fix set()/tset()/section() with empty lists 2017-10-19 02:12:14 +02:00
Matthias Schiffer
8b65619f59
lua-simple-uci: delete option when using Cursor:set() with nil value
Setting the section type when using set() with only two arguments is a very
confusing behaviour. section() can be used without a value table for the
same result.

Deleting the option instead will make set() and get() symmetric and will
allow to simplify some code that needed to check for nil to call set() or
delete() before.
2017-08-08 04:31:26 +02:00
Matthias Schiffer
c9fa162ebb
lua-simple-uci: remove support for obsolete alternative boolean strings 2017-08-08 04:30:04 +02:00
Matthias Schiffer
138ddeedf3 lua-simple-uci: new package providing wrapper around uci providing useful functions
- set allows boolean values
- delete_all
- section
- tset
- get_bool
- get_list
- get_first
- set_list
2017-01-19 12:34:20 +01:00