mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-01-31 22:54:54 -05:00
25 lines
582 B
Bash
Executable File
25 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
|