Advertisement
Guest User

kernel_version_check_fix.patch

a guest
Aug 5th, 2015
388
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.84 KB | None | 0 0
  1. --- displaylink-installer.sh    2015-08-05 18:10:01.127802846 +1000
  2. +++ displaylink-installer-patched.sh    2015-08-05 18:10:30.573247975 +1000
  3. @@ -238,8 +238,10 @@
  4.  
  5.      # Required kernel version
  6.      KVER=$(uname -r)
  7. -    [ $(echo $KVER | cut -d. -f1) != 3 ] && missing_requirement "Kernel version $KVER is too old. At least 3.14 is required"
  8. -    [ $(echo $KVER | cut -d. -f2) -lt 14 ] && missing_requirement "Kernel version $KVER is too old. At least 3.14 is required"
  9. +    KMAJVER=$(echo $KVER | cut -d. -f1)
  10. +    KMINVER=$(echo $KVER | cut -d. -f2)
  11. +    ([ $KMAJVER -lt 3 ] || [ $KMAJVER -eq 3 ] && [ $KMINVER -lt 14 ]) && missing_requirement \
  12. +      "Kernel version $KVER is too old. At least 3.14 is required"
  13.  
  14.      # Linux headers
  15.      [ ! -f "/lib/modules/$KVER/build/Kbuild" ] && missing_requirement "Linux headers for running kernel, $KVER"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement