git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
30ec22f
)
Fix saving of ipkg configuration file
author
Steven Barth
<redacted>
Fri, 16 Jan 2009 18:18:29 +0000
(18:18 +0000)
committer
Steven Barth
<redacted>
Fri, 16 Jan 2009 18:18:29 +0000
(18:18 +0000)
modules/admin-full/luasrc/model/cbi/admin_system/ipkg.lua
patch
|
blob
|
history
diff --git
a/modules/admin-full/luasrc/model/cbi/admin_system/ipkg.lua
b/modules/admin-full/luasrc/model/cbi/admin_system/ipkg.lua
index f161045a37f648224c01298582b86776d3e2cdb4..a93b4b0ea3c00c6ece6f2199cd14baa05b79cd7e 100644
(file)
--- a/
modules/admin-full/luasrc/model/cbi/admin_system/ipkg.lua
+++ b/
modules/admin-full/luasrc/model/cbi/admin_system/ipkg.lua
@@
-22,14
+22,13
@@
function t.cfgvalue()
return luci.fs.readfile(ipkgfile) or ""
end
+function t.write(self, section, data)
+ return luci.fs.writefile(ipkgfile, data)
+end
+
f:append(Template("admin_system/ipkg"))
function f.handle(self, state, data)
- if state == FORM_VALID then
- if (luci.fs.readfile(ipkgfile) or "") ~= data.lines then
- luci.fs.writefile(ipkgfile, data.lines)
- end
- end
return true
end
git clone https://git.99rst.org/PROJECT