I don't think the kernel is the place. This is the responsibility of the
distributors - I think a big warning in some rc script per default should be
more than enough. The Guys Who Know will have no problem removing this (just
like all that stuff about having your root read-write in the Slackware init
scripts), and all others will have to confirm that they are willing to risk
their machine (most kernels nowadays manage to kick off at least the
single-user startup phase).
Something along the line:
#!/bin/sh
minor=`uname -r|sed 's/^.*\.\(.*\)\..*$/\1/'`
if [ `expr $minor % 2` = 1 ]
then
echo "Alpha kernel"
else
echo "Stable kernel"
fi
but more annoying :-)
--
Cees de Groot <C.deGroot@inter.NL.net>
OpenLink Software, Inc.
I think your idea is better than mine. Kernel is complicated enough. I will
try mailing to the people doing the startup scripts.
--Jean Francois Martinez
What's the operating system used by Bill Gates? Linux of course. What else for an intelligent man like him? :-)