kaiux

lyns Debian kFreeBSD

Feb 29th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.63 KB | None | 0 0
  1. -------- [ Git diff starts here ] -------------------
  2. From 6e3bbd658a1b08659d8ddd1136e99c6c52cd5e95 Mon Sep 17 00:00:00 2001
  3. From: Kaio Rafael <opensource@kaiux.com>
  4. Date: Tue, 1 Mar 2016 00:49:45 -0400
  5. Subject: [PATCH] Added Debian GNU/kFreeBSD detection
  6.  
  7. Signed-off-by: Kaio Rafael <opensource@kaiux.com>
  8. ---
  9.  include/osdetection |   14 ++++++++++++++
  10.  1 file changed, 14 insertions(+)
  11.  
  12. diff --git a/include/osdetection b/include/osdetection
  13. index 3786799..3ff1528 100644
  14. --- a/include/osdetection
  15. +++ b/include/osdetection
  16. @@ -96,6 +96,20 @@
  17.            SYSCTL_READKEY=""
  18.          ;;
  19.  
  20. +   #Debian GNU/kFreeBSD
  21. +   GNU/kFreeBSD)
  22. +     OS="FreeBSD"
  23. +     OS_NAME="Debian GNU/kFreeBSD"
  24. +     OS_FULLNAME=`uname -s -r`
  25. +     OS_VERSION=`cat /etc/debian_version`
  26. +     HARDWARE=`uname -m`
  27. +     HOMEDIRS="/home"
  28. +     FIND_BINARIES="whereis -b"
  29. +     OS_KERNELVERSION_FULL=`uname -r`
  30. +     OS_KERNELVERSION=`echo ${OS_KERNELVERSION_FULL} | sed 's/-.*//'`
  31. +     SYSCTL_READKEY="sysctl -n"
  32. +   ;;
  33. +
  34.          # Linux
  35.          Linux)
  36.            OS="Linux"
  37. --
  38. 1.7.10.4
  39.  
  40. -------- [ Git diff ends  here ] -------------------
  41.  
  42.   Program version:           2.1.8
  43.   Operating system:          FreeBSD
  44.   Operating system name:     Debian GNU/kFreeBSD
  45.   Operating system version:  9.0-2-amd64
  46.   Kernel version:            9.0
  47.   Hardware platform:         x86_64
  48.   Hostname:                  bsdebian
  49.   Auditor:                   [Unknown]
  50.   Profile:                   ./default.prf
  51.   Log file:                  /var/log/lynis.log
  52.   Report file:               /var/log/lynis-report.dat
  53.   Report version:            1.0
  54.   Plugin directory:          ./plugins
Add Comment
Please, Sign In to add comment