Skip to content

Instantly share code, notes, and snippets.

@nemesifier
Created October 26, 2016 13:20
Show Gist options
  • Save nemesifier/f23e8d1897ccc122d74f5b5a46164a09 to your computer and use it in GitHub Desktop.
Save nemesifier/f23e8d1897ccc122d74f5b5a46164a09 to your computer and use it in GitHub Desktop.
OpenWRT Luci notes
-- print table structure
require('luci.util')
require('luci.jsonc')
t = {'test'}
print(luci.util.dumptable(t))
print(luci.jsonc.stringify(t))
-- disable luci caching to make it easy to do live editing on a test router
-- uci set luci.ccache.enable=0;
-- uci commit luci
-- reboot; exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment