⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 status.lua

📁 嵌入式无线路由系统openwrt的web配置工具
💻 LUA
字号:
#!/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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -