status.lua.svn-base

来自「嵌入式无线路由系统openwrt的web配置工具」· SVN-BASE 代码 · 共 20 行

SVN-BASE
20
字号
#!/usr/bin/lua-- Copyright (C) 2008 OpenRB.comrequire('fslib')data = datajson()if (data ~= nil and data['id'] ~= nil) then  cfg = uci.init('qos', data['id'], 'interface', true)  if (cfg ~= nil) then    uci.set('qos', data['id'], 'enabled', (cfg['enabled'] == '1' and '0' or '1'))  else    uci.set('qos', data['id'], 'enabled', '1')    uci.set('qos', data['id'], 'download', '1024')    uci.set('qos', data['id'], 'upload', '128')    uci.set('qos', data['id'], 'classgroup', 'Default')  end  uci.commit('qos')end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?