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

📄 save.lua.svn-base

📁 嵌入式无线路由系统openwrt的web配置工具
💻 SVN-BASE
字号:
#!/usr/bin/lua-- Copyright (C) 2009 OpenRB.comrequire('fslib')data = datajson() or {}if (data ~= nil and data['values'] ~= nil) then  file = 'route'  type = 'route'  if (data['id'] == nil) then    uci.init(file)    data['id'] = uci.addsection(file, type)  else    uci.init(file, data['id'], type, true)  end  for field, value in pairs(data['values']) do    if (field == 'gateway' and value == '') then      value = '*'    end    uci.setvalue(file,data['id'], field, value)  end  uci.commit(file)end

⌨️ 快捷键说明

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