From 1ce37d42cd2c132eca8c45ddb04fdb594349d08f Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Sat, 7 Dec 2024 04:50:40 -0500 Subject: [PATCH] . --- usr/share/security-misc/lkrg/lkrg-virtualbox | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/usr/share/security-misc/lkrg/lkrg-virtualbox b/usr/share/security-misc/lkrg/lkrg-virtualbox index 3b4a061..6ab093a 100755 --- a/usr/share/security-misc/lkrg/lkrg-virtualbox +++ b/usr/share/security-misc/lkrg/lkrg-virtualbox @@ -6,8 +6,11 @@ #set -x set -e +## Check if the VirtualBox host software is installed. if ! command -v vboxmanage &>/dev/null ; then + ## VirtualBox host software is not installed. if test -f /etc/sysctl.d/30-lkrg-virtualbox.conf ; then + ## Delete using '--verbose' so user is notified. rm --force --verbose /etc/sysctl.d/30-lkrg-virtualbox.conf fi exit 0 @@ -21,4 +24,7 @@ if ! test -f /usr/share/security-misc/lkrg/30-lkrg-virtualbox.conf ; then exit 0 fi +## TODO: check if lkrg is installed. + +## Delete using '--verbose' so user is notified. cp --verbose /usr/share/security-misc/lkrg/30-lkrg-virtualbox.conf /etc/sysctl.d/30-lkrg-virtualbox.conf