]> git.pld-linux.org Git - packages/rc-scripts.git/blobdiff - lsmod-fix.patch
fix: return _false_
[packages/rc-scripts.git] / lsmod-fix.patch
index 5491296c66ca429341ba49384fafd18596d9a290..38664e96103a3495a397b0ae8a116d1cab845a2e 100644 (file)
@@ -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
This page took 0.039019 seconds and 4 git commands to generate.