# upgrade udev if the installed version is < 093 and we're casting
# a > 2.6.14 kernel

local  UVER=$(installed_version udev | sed -e "s/^0*//")  &&

if (( UVER > 1 && UVER < 93 )) || spell_ok udev-old
then
  local VER2=$(echo $VERSION | cut -d. -f2)  &&
  local VER3=$(echo $VERSION | cut -d. -f3)  &&
  VER3=${VER3%%[^0-9]*}                      &&

  if (( VER2 > 6 ))            ||
     (( VER2 == 6 && VER3 > 14 ))
  then
    up_trigger  udev  cast_self
  fi
fi
