summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2009-01-20 10:56:07 +0000
committerSteven Barth <steven@midlink.org>2009-01-20 10:56:07 +0000
commit527edf0ba002370b665add902b530c11fe5e0da2 (patch)
tree4892a9b262a828afc087cdc39aa610d82b9ab626
parent514a9bfec70e393b3c27d625237ba0578789a8a9 (diff)
Replace Dos line endings with Unix ones where needed
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_services/crontab.lua4
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_system/ipkg.lua2
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_system/sshkeys.lua4
3 files changed, 5 insertions, 5 deletions
diff --git a/modules/admin-full/luasrc/model/cbi/admin_services/crontab.lua b/modules/admin-full/luasrc/model/cbi/admin_services/crontab.lua
index 7a9750f3e4..521e0a27d3 100644
--- a/modules/admin-full/luasrc/model/cbi/admin_services/crontab.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_services/crontab.lua
@@ -26,10 +26,10 @@ end
function f.handle(self, state, data)
if state == FORM_VALID then
if data.crons then
- luci.fs.writefile(cronfile, data.crons)
+ luci.fs.writefile(cronfile, data.crons:gsub("\r\n", "\n"))
end
end
return true
end
-return f \ No newline at end of file
+return f
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 a93b4b0ea3..fecc294b68 100644
--- a/modules/admin-full/luasrc/model/cbi/admin_system/ipkg.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_system/ipkg.lua
@@ -23,7 +23,7 @@ function t.cfgvalue()
end
function t.write(self, section, data)
- return luci.fs.writefile(ipkgfile, data)
+ return luci.fs.writefile(ipkgfile, data:gsub("\r\n", "\n"))
end
f:append(Template("admin_system/ipkg"))
diff --git a/modules/admin-full/luasrc/model/cbi/admin_system/sshkeys.lua b/modules/admin-full/luasrc/model/cbi/admin_system/sshkeys.lua
index 1c5569ccd4..26410c98a1 100644
--- a/modules/admin-full/luasrc/model/cbi/admin_system/sshkeys.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_system/sshkeys.lua
@@ -26,10 +26,10 @@ end
function f.handle(self, state, data)
if state == FORM_VALID then
if data.keys then
- luci.fs.writefile(keyfile, data.keys)
+ luci.fs.writefile(keyfile, data.keys:gsub("\r\n", "\n"))
end
end
return true
end
-return f \ No newline at end of file
+return f