Skip to content
Snippets Groups Projects
Commit 2619919b authored by Erik von Reis's avatar Erik von Reis
Browse files

made lsmod system searches whole word only

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