Changeset 4043
- Timestamp:
- 01/16/09 19:18:53 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
luci/branches/luci-0.8/modules/admin-full/luasrc/model/cbi/admin_system/ipkg.lua
r3068 r4043 23 23 end 24 24 25 function t.write(self, section, data) 26 return luci.fs.writefile(ipkgfile, data) 27 end 28 25 29 f:append(Template("admin_system/ipkg")) 26 30 27 31 function f.handle(self, state, data) 28 if state == FORM_VALID then29 if (luci.fs.readfile(ipkgfile) or "") ~= data.lines then30 luci.fs.writefile(ipkgfile, data.lines)31 end32 end33 32 return true 34 33 end
