mirror of
https://github.com/Kicksecure/security-misc.git
synced 2024-12-22 20:23:35 +07:00
.
This commit is contained in:
parent
59299a6639
commit
1ce37d42cd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user