Installing kernel 2.6.4 0n (not over) 2.4

Rick Stevens rstevens at vitalstream.com
Tue Mar 16 21:25:21 UTC 2004


jludwig wrote:
> If you set up a script witn something like;
> 
> KERNEL=`uname -a | cut -d . -f3`
> if $KERNEL = 4 ;then
> 	mouse= # your code
>           else
> 	mouse= # your code
> fi
>  
> you will automate the process. Where to put this I haven't determined.

Uh, don't you mean:

	KERNEL=`uname -r | cut -d . -f2`

"uname -a" will give you the node name, too, which may contain one or
more "."s.  "uname -r" only gives you the kernel version.

As to where to put it, the most common place for localizations is in
/etc/rc.d/rc.local, wouldn't it?
----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer     rstevens at vitalstream.com -
- VitalStream, Inc.                       http://www.vitalstream.com -
-                                                                    -
-      On a scale of 1 to 10 I'd say...  oh, somewhere in there.     -
----------------------------------------------------------------------





More information about the users mailing list