mirror of
https://github.com/Kicksecure/security-misc.git
synced 2024-12-23 01:13:40 +07:00
.
This commit is contained in:
parent
59299a6639
commit
1ce37d42cd
@ -6,8 +6,11 @@
|
|||||||
#set -x
|
#set -x
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
## Check if the VirtualBox host software is installed.
|
||||||
if ! command -v vboxmanage &>/dev/null ; then
|
if ! command -v vboxmanage &>/dev/null ; then
|
||||||
|
## VirtualBox host software is not installed.
|
||||||
if test -f /etc/sysctl.d/30-lkrg-virtualbox.conf ; then
|
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
|
rm --force --verbose /etc/sysctl.d/30-lkrg-virtualbox.conf
|
||||||
fi
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
@ -21,4 +24,7 @@ if ! test -f /usr/share/security-misc/lkrg/30-lkrg-virtualbox.conf ; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
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
|
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