[packages/rc-scripts] fix: return _false_
    mis 
    mis at pld-linux.org
       
    Fri Mar 13 15:35:14 CET 2020
    
    
  
commit eafede3a1127af605141f3b14057945682f449bf
Author: mis <mis at pld-linux.org>
Date:   Fri Mar 13 15:34:53 2020 +0100
    fix: return _false_
 lsmod-fix.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/lsmod-fix.patch b/lsmod-fix.patch
index 5491296..38664e9 100644
--- a/lsmod-fix.patch
+++ b/lsmod-fix.patch
@@ -5,7 +5,7 @@
  # module is needed (ie. is requested, is available and isn't loaded already)
  is_module() {
 +	# return false if /sbin/lsmod not exists (like in containers)
-+	[ -x /sbin/lsmod ] || return 0
++	[ -x /sbin/lsmod ] || return 1
 +
  	# module name without .o at end
  	if ! lsmod | grep -q "$1"; then
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rc-scripts.git/commitdiff/eafede3a1127af605141f3b14057945682f449bf
    
    
More information about the pld-cvs-commit
mailing list