convert luci.fs users to nixio.fs api
[project/luci.git] / modules / admin-full / luasrc / model / cbi / admin_system / sshkeys.lua
index 26410c98a13d8f7a4c0c7847a6a2c7e677883c5f..b7ff482353bd1a030e304f367f54f4f960d811e0 100644 (file)
@@ -20,13 +20,13 @@ t = f:field(TextValue, "keys")
 t.rmempty = true
 t.rows = 10
 function t.cfgvalue()
-       return luci.fs.readfile(keyfile) or ""
+       return nixio.fs.readfile(keyfile) or ""
 end
 
 function f.handle(self, state, data)
        if state == FORM_VALID then
                if data.keys then
-                       luci.fs.writefile(keyfile, data.keys:gsub("\r\n", "\n"))
+                       nixio.fs.writefile(keyfile, data.keys:gsub("\r\n", "\n"))
                end
        end
        return true