This commit is contained in:
Patrick Schleizer 2024-12-07 04:50:40 -05:00
parent 59299a6639
commit 1ce37d42cd
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -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