The script itself says which versions the script is needed for but
it is run on RHEL 8.x as well where it is not needed.  Disable the
warning and change the exit code to zero since it may unnecessarily
alarm users and is really only for debugging anyway.

Signed-off-by: Greg Rose <[email protected]>
---

V2 - As per Yi-Hung's suggestion change exit code to zero.
---
 rhel/usr_share_openvswitch_scripts_ovs-kmod-manage.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rhel/usr_share_openvswitch_scripts_ovs-kmod-manage.sh 
b/rhel/usr_share_openvswitch_scripts_ovs-kmod-manage.sh
index c70e135..bb0d909 100644
--- a/rhel/usr_share_openvswitch_scripts_ovs-kmod-manage.sh
+++ b/rhel/usr_share_openvswitch_scripts_ovs-kmod-manage.sh
@@ -136,8 +136,8 @@ elif [ "$mainline_major" = "4" ] && [ "$mainline_minor" = 
"12" ]; then
 fi
 
 if [ X"$ver_offset" = X ]; then
-    echo "This script is not intended to run on kernel $(uname -r)"
-    exit 1
+#    echo "This script is not intended to run on kernel $(uname -r)"
+    exit 0
 fi
 
 #IFS='.\|-' read -r -a version_nums <<<"${current_kernel}"
-- 
1.8.3.1

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to