Skip to content
Snippets Groups Projects
Commit 78a0bdae authored by Jameson Rollins's avatar Jameson Rollins
Browse files

Merge branch 'whole_word_model' into 'master'

made lsmod system searches whole word only

Closes #187

See merge request cds/advligorts!166
parents 3192c7d4 2619919b
No related branches found
No related tags found
1 merge request!166made lsmod system searches whole word only
......@@ -226,7 +226,7 @@ _lsmod() {
local allloaded=
for m in ${modules[*]}; do
md=$(lsmod | grep "^${m}") || true
md=$(lsmod | grep "^${m}\s") || true
if [ -z "$md" ] ; then
printf "%-18s ***NOT LOADED***\n" "$m"
allloaded=1
......@@ -237,7 +237,7 @@ _lsmod() {
if [ "$systems" ] ; then
echo
for m in ${systems[*]}; do
md=$(lsmod | grep "^${m}") || true
md=$(lsmod | grep "^${m}\s") || true
if [ -z "$md" ] ; then
printf "%-18s ***NOT LOADED***\n" "$m"
allloaded=1
......
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