mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-05-03 02:44:57 -04:00
24 lines
582 B
Bash
Executable file
24 lines
582 B
Bash
Executable file
#!/bin/bash
|
|
|
|
## Copyright (C) 2021 - 2024 ENCRYPTED SUPPORT LP <adrelanos@whonix.org>
|
|
## See the file COPYING for copying conditions.
|
|
|
|
#set -x
|
|
set -e
|
|
|
|
if ! command -v vboxmanage &>/dev/null ; then
|
|
if test -f /etc/sysctl.d/30-lkrg-virtualbox.conf ; then
|
|
rm --force --verbose /etc/sysctl.d/30-lkrg-virtualbox.conf
|
|
fi
|
|
exit 0
|
|
fi
|
|
|
|
if ! test -d /etc/sysctl.d ; then
|
|
exit 0
|
|
fi
|
|
|
|
if ! test -f /usr/share/security-misc/lkrg/30-lkrg-virtualbox.conf ; then
|
|
exit 0
|
|
fi
|
|
|
|
cp --verbose /usr/share/security-misc/lkrg/30-lkrg-virtualbox.conf /etc/sysctl.d/30-lkrg-virtualbox.conf
|