diff options
author | Ted Trask <ttrask01@yahoo.com> | 2012-01-13 21:44:01 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2012-01-13 21:44:01 +0000 |
commit | 24244ddb59ea8e4b4d16c71da48e4c1ec3ee5ef2 (patch) | |
tree | 7ef28ade5004f3cb69f02cd624f00eba89cdc8ca | |
parent | f910a00a70ed3d7cb009d6f13caa29bdc2d94d5d (diff) | |
download | acf-lib-24244ddb59ea8e4b4d16c71da48e4c1ec3ee5ef2.tar.bz2 acf-lib-24244ddb59ea8e4b4d16c71da48e4c1ec3ee5ef2.tar.xz |
Modified processinfo to hide rc? from service list
-rw-r--r-- | processinfo.lua | 6 |
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 {} |