From 56a1ef7ebe6ae60bd4722f979ec50684221d94fb Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Sat, 6 Sep 2008 15:11:19 +0000 Subject: Added dynamic network activity page to health controller. git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@1452 ab2d0c66-481e-0410-8bed-d214d4d58bed --- syslog-model.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'syslog-model.lua') diff --git a/syslog-model.lua b/syslog-model.lua index 273cc27..25969fe 100644 --- a/syslog-model.lua +++ b/syslog-model.lua @@ -202,8 +202,7 @@ end function update_filedetails (filedetails) -- Validation before writing - filedetails.value.filecontent.value = format.dostounix(filedetails.value.filecontent.value) - filedetails.value.filecontent.value = filedetails.value.filecontent.value:gsub("\n+$", "") + filedetails.value.filecontent.value = string.gsub(format.dostounix(filedetails.value.filecontent.value), "\n+$", "") local configcontent = getopts.getoptsfromfile(filedetails.value.filecontent.value, "", "SYSLOGD_OPTS", true) or {} local config = makeconfig(configcontent) local success, errtxt -- cgit v1.2.3