Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
ae829be3
Commit
ae829be3
authored
May 11, 2015
by
Stéphane Graber
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #498 from brauner/master
Make lxc-checkconfig work with kernel versions > 3
parents
e7831129
56983b40
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lxc-checkconfig.in
src/lxc/lxc-checkconfig.in
+2
-2
No files found.
src/lxc/lxc-checkconfig.in
View file @
ae829be3
...
@@ -24,7 +24,7 @@ is_enabled() {
...
@@ -24,7 +24,7 @@ is_enabled() {
if
[
$RES
-eq
0
]
;
then
if
[
$RES
-eq
0
]
;
then
$SETCOLOR_SUCCESS
&&
echo
"enabled"
&&
$SETCOLOR_NORMAL
$SETCOLOR_SUCCESS
&&
echo
"enabled"
&&
$SETCOLOR_NORMAL
else
else
if
[
!
-z
"
$mandatory
"
-a
"
$mandatory
"
=
yes
]
;
then
if
[
!
-z
"
$mandatory
"
]
&&
[
"
$mandatory
"
=
yes
]
;
then
$SETCOLOR_FAILURE
&&
echo
"required"
&&
$SETCOLOR_NORMAL
$SETCOLOR_FAILURE
&&
echo
"required"
&&
$SETCOLOR_NORMAL
else
else
$SETCOLOR_WARNING
&&
echo
"missing"
&&
$SETCOLOR_NORMAL
$SETCOLOR_WARNING
&&
echo
"missing"
&&
$SETCOLOR_NORMAL
...
@@ -100,7 +100,7 @@ echo -n "Cgroup device: " && is_enabled CONFIG_CGROUP_DEVICE
...
@@ -100,7 +100,7 @@ echo -n "Cgroup device: " && is_enabled CONFIG_CGROUP_DEVICE
echo
-n
"Cgroup sched: "
&&
is_enabled CONFIG_CGROUP_SCHED
echo
-n
"Cgroup sched: "
&&
is_enabled CONFIG_CGROUP_SCHED
echo
-n
"Cgroup cpu account: "
&&
is_enabled CONFIG_CGROUP_CPUACCT
echo
-n
"Cgroup cpu account: "
&&
is_enabled CONFIG_CGROUP_CPUACCT
echo
-n
"Cgroup memory controller: "
echo
-n
"Cgroup memory controller: "
if
[
$KVER_MAJOR
-ge
3
-a
$KVER_MINOR
-ge
6
]
;
then
if
([
$KVER_MAJOR
-ge
3
]
&&
[
$KVER_MINOR
-ge
6
])
||
([
$KVER_MAJOR
-gt
3
])
;
then
is_enabled CONFIG_MEMCG
is_enabled CONFIG_MEMCG
else
else
is_enabled CONFIG_CGROUP_MEM_RES_CTLR
is_enabled CONFIG_CGROUP_MEM_RES_CTLR
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment