[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#59576: libc6: kernel flavours break /etc/init.d/devpts.sh



In article <cistron.E12QyCl-0000BT-00@list.unix-ag.uni-hannover.de>,
 <ingo.saitz@stud.uni-hannover.de, 59576@bugs.debian.org> 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 */


Reply to: