update kernel version check

pull/156/head
233boy 6 years ago
parent 1e0f453bee
commit 2d207d52e1
  1. 14
      src/bbr.sh

@ -6,10 +6,12 @@ _open_bbr() {
sysctl -p >/dev/null 2>&1 sysctl -p >/dev/null 2>&1
} }
if [[ $(uname -r | cut -b 1) -eq 4 ]]; then _kernel_ver() {
case $(uname -r | cut -b 3-4) in local _test1=$(uname -r | cut -d\. -f1)
9. | [1-9][0-9]) local _test2=$(uname -r | cut -d\. -f2)
if [[ $_test1 -eq 4 && $_test2 -ge 9 ]] || [[ $_test1 -ge 5 ]]; then
_open_bbr _open_bbr
;; fi
esac }
fi
_kernel_ver

Loading…
Cancel
Save