Move the shell code to check for RC_SYS to the keywords dependency.
This commit is contained in:
1 parent
0364bb2c84
commit
42bfd7b6dc
6 files changed
+23
-30
No files matched your search
@@ -7,13 +7,14 @@ description="Loads a user defined list of kernel modules."
|
||||
depend()
|
||||
{
|
||||
use isapnp
|
||||
keywords novps
|
||||
}
|
||||
|
||||
start()
|
||||
{
|
||||
# Should not fail if kernel do not have module
|
||||
# support compiled in ...
|
||||
[ ! -f /proc/modules -o "${RC_SYS}" = "VPS" ] && return 0
|
||||
[ ! -f /proc/modules ] && return 0
|
||||
|
||||
local KV=$(uname -r)
|
||||
local KV_MAJOR=${KV%%.*}
|
||||
|
||||
Reference in new issue
Block a user