diff options
author | Sandesh C <sandeshc13@gmail.com> | 2016-07-28 23:53:43 +0530 |
---|---|---|
committer | Sandesh C <sandeshc13@gmail.com> | 2016-07-28 23:53:43 +0530 |
commit | 3f7a7f86c70b24e3b8aecb10b20e646cc6a41226 (patch) | |
tree | 962897b0c947ab987caf807373f77156e0cd5e1c | |
parent | 2ffb09192b77d55e6c4ee834ffb3bdd670321b1f (diff) |
modified grep search for 'v4l2loopback' module as exact word search; refs #34
-rwxr-xr-x | prepare-videochat.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/prepare-videochat.sh b/prepare-videochat.sh index 13511ad..667cec9 100755 --- a/prepare-videochat.sh +++ b/prepare-videochat.sh @@ -181,7 +181,7 @@ CAPTURE_STREAM=av has_kernel_module() { # Checks if module exists in system (but does not load it) MODULE="$1" - if lsmod | grep "$MODULE" >/dev/null 2>/dev/null; then + if lsmod | grep -w "$MODULE" >/dev/null 2>/dev/null; then # echo "$MODULE is loaded! So it exists." return 0 else @@ -359,7 +359,7 @@ if ! has_kernel_module v4l2loopback; then fi # Probe module if not probed yet -if lsmod | grep v4l2loopback >/dev/null 2>/dev/null; then +if lsmod | grep -w v4l2loopback >/dev/null 2>/dev/null; then # module is already loaded, do nothing : elif [ $CAPTURE_STREAM = v -o $CAPTURE_STREAM = av ]; then |