save.lua.svn-base
来自「嵌入式无线路由系统openwrt的web配置工具」· SVN-BASE 代码 · 共 22 行
SVN-BASE
22 行
#!/usr/bin/lua-- Copyright (C) 2008 OpenRB.comrequire('fslib')tmpfile = os.getenv('FORM_fwfile')out = { done = 1}if (tmpfile ~= nil) then out.params = proc('/lib/flashsys/modules/upgrade/check.sh ' .. tmpfile, true):sub(1,1) if (out.params == '1') then os.rename(tmpfile, '/tmp/fsfirmware') else os.remove(tmpfile) endendio.write(json.encode(out))
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?