📄 savecustom.lua.svn-base
字号:
#!/usr/bin/lua-- Copyright (C) 2008 OpenRB.comrequire('fslib')data = datajson()if (data and data.values and data.values.custom) then cfg = uci.init('firewall', 'custom', 'include', true) path = data.path and data.path or '/etc/firewall.user' uci.set('firewall', 'custom', 'path', path) uci.commit('firewall') writefile(path, "#!/bin/sh\n" .. data.values.custom)end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -