--- trunk/magellan-initscripts/etc/rc.d/init.d/functions 2005/10/21 15:21:41 274 +++ trunk/magellan-initscripts/etc/rc.d/init.d/functions 2006/01/03 18:03:11 317 @@ -1,5 +1,5 @@ #!/bin/bash -# $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/etc/rc.d/init.d/functions,v 1.5 2005-10-21 15:21:41 niro Exp $ +# $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/etc/rc.d/init.d/functions,v 1.6 2006-01-03 18:03:11 niro Exp $ # Begin $rc_base/init.d/functions - Run Level Control Functions @@ -348,14 +348,20 @@ fi } +kernel_version() +{ + local KV="$(uname -r | cut -d- -f1)" + echo "${KV}" +} + kernel_major_version() { local KV - KV="$(uname -r|cut -d. -f1-2)" + KV="$(uname -r | cut -d. -f1-2)" echo "${KV}" } -dolisting() +dolisting() { local x= local y=