summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2012-01-13 21:44:01 +0000
committerTed Trask <ttrask01@yahoo.com>2012-12-04 15:23:28 +0000
commit4d2b7920e4e5b453e0ba85076beaabe288e4f4b7 (patch)
tree14bee90be239f990b737f2b51c0c1a84bedfc48e
parent6cf3c53444dd226562c1678c1125344334cba5db (diff)
downloadacf-lib-4d2b7920e4e5b453e0ba85076beaabe288e4f4b7.tar.bz2
acf-lib-4d2b7920e4e5b453e0ba85076beaabe288e4f4b7.tar.xz
Modified processinfo to hide rc? from service list
(cherry picked from commit 24244ddb59ea8e4b4d16c71da48e4c1ec3ee5ef2)
-rw-r--r--processinfo.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/processinfo.lua b/processinfo.lua
index 7058b04..3cc1b96 100644
--- a/processinfo.lua
+++ b/processinfo.lua
@@ -46,9 +46,9 @@ function read_initrunlevels()
local cmdresult = f:read("*a") or ""
f:close()
for line in string.gmatch(cmdresult, "([^\n]*)\n?") do
- local service = string.match(line, "^%s*(%S+)")
- local runlevels = string.match(line, "|%s*(%S.*)")
- if service then
+ local service = string.match(line, "^%s*(%S+)")
+ local runlevels = string.match(line, "|%s*(%S.*)")
+ if service and service ~= "rcK" and service ~= "rcL" and service ~= "rcS" then
local runlevel = {}
if runlevels then
runlevel = format.string_to_table(string.gsub(runlevels, "%s+$", ""), "%s+") or {}