summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSukneet Basuta2012-06-06 10:12:48 -0400
committerVlad Glagolev2012-06-14 12:34:37 +0400
commitb5e7d3d9aa83bd0c913cdf677c61b1e6b61ba49f (patch)
treebe49e2b1aa881a268cae49d214053f846fb53f93
parente3a7b23861044a8705be5fae007a386b26827dab (diff)
init.d: fixed udev check for linux 3.x
(cherry picked from commit 303e7741088e3d5eefb2d3880e6a49a9bf474e37)
-rwxr-xr-xsmgl/init.d/DEPENDS3
-rw-r--r--smgl/init.d/HISTORY3
2 files changed, 5 insertions, 1 deletions
diff --git a/smgl/init.d/DEPENDS b/smgl/init.d/DEPENDS
index b4da7f1b8b..34d7eccc14 100755
--- a/smgl/init.d/DEPENDS
+++ b/smgl/init.d/DEPENDS
@@ -14,7 +14,8 @@ then
local VER3=$(echo $KVER | cut -d. -f3) &&
VER3=${VER3%%[^0-9]*} &&
- if (( VER2 > 6 )) ||
+ if [[ $KVER/.* >=3 ]] ||
+ (( VER2 > 6 )) ||
(( VER2 == 6 && VER3 > 14 )) ||
spell_ok udev
then
diff --git a/smgl/init.d/HISTORY b/smgl/init.d/HISTORY
index d47336f084..f9b7b1c79d 100644
--- a/smgl/init.d/HISTORY
+++ b/smgl/init.d/HISTORY
@@ -1,3 +1,6 @@
+2012-06-06 Sukneet Basuta <sukneet@sourcemage.org>
+ * DEPENDS: fixed udev check for linux 3.x
+
2011-07-30 Ladislav Hagara <hgr@vabo.cz>
* DETAILS: 2.2.13
* init.d/devices: updated to work with linux 3