From 1bf4143ca13acfe1ac8720f980b84943f2f382be Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 20 Jul 2009 14:52:12 +0000 Subject: Another bug fix for /lib/processinfo.lua read_initrunlevels to remove blank. --- Makefile | 2 +- lib/processinfo.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index fa8a2e7..cc45430 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ APP_NAME=core PACKAGE=acf-$(APP_NAME) -VERSION=0.8.0 +VERSION=0.8.1 P=$(PACKAGE)-$(VERSION) DISTDIR:=$(shell pwd)/$(P) diff --git a/lib/processinfo.lua b/lib/processinfo.lua index 77dee5b..5400f92 100644 --- a/lib/processinfo.lua +++ b/lib/processinfo.lua @@ -46,7 +46,7 @@ function read_initrunlevels() local cmdresult = f:read("*a") or "" f:close() for line in string.gmatch(cmdresult, "([^\n]*)\n?") do - local service, runlevels = string.match(line, "^%s*(%w+) |%s*(.*)") + local service, runlevels = string.match(line, "^%s*(%w+) |%s*(%S.*)") if service then local runlevel = format.string_to_table(string.gsub(runlevels, "%s+$", ""), "%s+") or {} config[#config+1] = {servicename=service, runlevels=runlevel} -- cgit v1.2.3