Guest User

Untitled

a guest
May 28th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. diff --git a/scripts/setup-modules.sh b/scripts/setup-modules.sh
  2. index 0efdc36..eb0eb77 100644
  3. --- a/scripts/setup-modules.sh
  4. +++ b/scripts/setup-modules.sh
  5. @@ -63,14 +63,14 @@ check_supported_kernel() {
  6. local kernel_version=$1
  7. local output=
  8.  
  9. - output=$(modinfo -k "$kernel_version" -F supported 2>/dev/null)
  10. + output=$(modinfo -k "$kernel_version" -F supported ext3 2>/dev/null)
  11. if [ "$?" -ne 0 ] ; then
  12. # If the command existed with an error, assume that the kernel is
  13. - # supported. That is just the same behaviour as before we did that
  14. + # unsupported. That is just the same behaviour as before we did that
  15. # check_supported_kernel() hack
  16. verbose "[MODULES]\t'modinfo -k \"$kernel_version\" -F supported' " \
  17. "returned with an error."
  18. - return 0
  19. + return 1
  20. fi
  21.  
  22. if [[ "$output" = *yes* ]] ; then
Add Comment
Please, Sign In to add comment