Skip to content

Commit

Permalink
openwrt: import upgrade-script from community-packages
Browse files Browse the repository at this point in the history
  • Loading branch information
blocktrron committed Apr 9, 2024
1 parent 1ed136e commit d449a48
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions openwrt/node-whisperer/files/node-whisperer.upgrade.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ if not sources_set then
sources = default_sources
end

uci:set('node-whisperer', 'settings', 'disabled', disabled)
uci:delete('node-whisperer', 'settings')
uci:section('node-whisperer', 'settings', 'settings', {
disabled = disabled,
})
uci:set('node-whisperer', 'settings', 'information', sources)
uci:commit('node-whisperer')
uci:commit('node-whisperer')

0 comments on commit d449a48

Please sign in to comment.