diff options
author | Sukneet Basuta | 2012-06-06 20:49:41 -0400 |
---|---|---|
committer | Vlad Glagolev | 2012-06-14 12:35:07 +0400 |
commit | f75b5eb3aa2de6a9be399a348860d858cde18dff (patch) | |
tree | 89c16095f89c1d6a1869c3e98130aff753053646 | |
parent | 0113d11707e389634465ca5f8e25169d6b4b01ce (diff) |
init.d: make udev check for linux 3.x more robust
(cherry picked from commit 6ce0e03ddb5a844fb50fbf7dd1b07c90016ce325)
-rwxr-xr-x | smgl/init.d/DEPENDS | 3 | ||||
-rw-r--r-- | smgl/init.d/HISTORY | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/smgl/init.d/DEPENDS b/smgl/init.d/DEPENDS index 34d7eccc14..305bdccf36 100755 --- a/smgl/init.d/DEPENDS +++ b/smgl/init.d/DEPENDS @@ -10,11 +10,12 @@ the old static /dev" elif [[ $DEVICES == udev ]] then local KVER=$(get_kernel_version) && + local VER1=${KVER/.*} && local VER2=$(echo $KVER | cut -d. -f2) && local VER3=$(echo $KVER | cut -d. -f3) && VER3=${VER3%%[^0-9]*} && - if [[ $KVER/.* >=3 ]] || + if (( VER1 > 2 )) || (( VER2 > 6 )) || (( VER2 == 6 && VER3 > 14 )) || spell_ok udev diff --git a/smgl/init.d/HISTORY b/smgl/init.d/HISTORY index f9b7b1c79d..94acc8a5d3 100644 --- a/smgl/init.d/HISTORY +++ b/smgl/init.d/HISTORY @@ -1,3 +1,6 @@ +2012-06-07 Sukneet Basuta <sukneet@sourcemage.org> + * DEPENDS: make udev check for linux 3.x more robust + 2012-06-06 Sukneet Basuta <sukneet@sourcemage.org> * DEPENDS: fixed udev check for linux 3.x |