In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED], [EMAIL PROTECTED]> wrote: >The trick is not to chop at the last dot but after the second dot, so it >doesn't matter how many dots you have in your kernelversion. > >Your 'case' construct also seems to break at higher kernelversions like 2.10.*, >4.*, 10.*. Won't it be enough to rely entirely on the value of $solution?
Simpler is better. Why use $major_release at all. The following will work as well and makes the script simpler instead of more complicated: case `uname -r` in [01].*|2.[01].*) # Old kernel - no devfs or devpts ;; *) # Have case $solution in ... etc In fact, it looks like the whole case statement can be deleted. For 1.* and 2.0,2.1 kernels $devpts will be false anyway. Mike. -- #define ESPANISHINQ 1478 /* Expect the Spanish Inquisition */