Skip to content
Snippets Groups Projects
Commit daaa1465 authored by Janne Blomqvist's avatar Janne Blomqvist Committed by Morris Jette
Browse files

Cgroup release example failed if the lssubsys command is not found.

parent 1e8d3d45
No related branches found
No related tags found
No related merge requests found
......@@ -19,10 +19,10 @@ subsystem=${progname##*_}
get_mount_dir()
{
local lssubsys=$(type -p lssubsys)
if [ -x $lssubsys ]; then
if [[ $lssubsys ]]; then
$lssubsys -m $subsystem | awk '{print $2}'
else
awk "/release_agent=$0/ { print \$2 }"
echo "/cgroup/$subsystem"
fi
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment