Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormboelen <michael@cisofy.com>2014-09-19 00:22:11 +0400
committermboelen <michael@cisofy.com>2014-09-19 00:22:11 +0400
commitd4b445c3162a890ec750c6742e08ecf23d4f8dca (patch)
tree2ccd912963cdf49e444ffdb3755de64085bc019f /include/osdetection
parentc4aad72201007994217be1f5d07592d5914caef7 (diff)
Check Linux kernel version and properly display short version
Diffstat (limited to 'include/osdetection')
-rw-r--r--include/osdetection3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/osdetection b/include/osdetection
index c0e44ca5..890e1b89 100644
--- a/include/osdetection
+++ b/include/osdetection
@@ -106,7 +106,8 @@
HARDWARE=`uname -m`
HOMEDIRS="/home"
FIND_BINARIES="whereis -b"
- OS_KERNELVERSION=`uname -r`
+ OS_KERNELVERSION_FULL=`uname -r`
+ OS_KERNELVERSION=`echo ${OS_KERNELVERSION_FULL} | sed 's/-.*//'`
# Amazon
if [ -e "/etc/system-release" ]; then