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

📄 savebond.lua.svn-base

📁 嵌入式无线路由系统openwrt的web配置工具
💻 SVN-BASE
字号:
#!/usr/bin/lua-- Copyright (C) 2008 OpenRB.comrequire('fslib')data = datajson() or {}if data['id'] and data['values'] then  cfgName = data['id']  uci.init('bonding', cfgName, 'interface')  iflist = {}  for field, value in pairs(data['values']) do    if (field:find('^if_') and value ~= '') then      table.insert(iflist, value)    else      uci.setvalue('bonding', cfgName, field, value)    end  end  ifnames = table.concat(iflist, ' ')  if #iflist == 0 then    uci.set('bonding', cfgName, 'enabled', '0')  end  uci.setvalue('bonding', cfgName, 'ifname', ifnames)  uci.commit('bonding')end

⌨️ 快捷键说明

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