1 |
#!/bin/bash |
#!/bin/bash |
2 |
# $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 $ |
3 |
|
|
4 |
# Begin $rc_base/init.d/functions - Run Level Control Functions |
# Begin $rc_base/init.d/functions - Run Level Control Functions |
5 |
|
|
348 |
fi |
fi |
349 |
} |
} |
350 |
|
|
351 |
|
kernel_version() |
352 |
|
{ |
353 |
|
local KV="$(uname -r | cut -d- -f1)" |
354 |
|
echo "${KV}" |
355 |
|
} |
356 |
|
|
357 |
kernel_major_version() |
kernel_major_version() |
358 |
{ |
{ |
359 |
local KV |
local KV |
360 |
KV="$(uname -r|cut -d. -f1-2)" |
KV="$(uname -r | cut -d. -f1-2)" |
361 |
echo "${KV}" |
echo "${KV}" |
362 |
} |
} |
363 |
|
|
364 |
dolisting() |
dolisting() |
365 |
{ |
{ |
366 |
local x= |
local x= |
367 |
local y= |
local y= |