mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-11-25 21:36:37 -05:00
port to package-installed-check
This commit is contained in:
parent
abf5852eba
commit
efa06a1eae
2 changed files with 2 additions and 5 deletions
2
debian/security-misc-shared.config
vendored
2
debian/security-misc-shared.config
vendored
|
|
@ -22,7 +22,7 @@ true "
|
|||
"
|
||||
|
||||
## NOTE: Code duplication.
|
||||
## Copied from: helper-scripts /usr/libexec/helper-scripts/package_installed_check.bsh
|
||||
## Copied from: helper-scripts /usr/libexec/helper-scripts/package_installed_check.sh
|
||||
##
|
||||
## '.config' scripts are run very early. Even 'Pre-Depends: helper-scripts' would be insufficient.
|
||||
## Therefore the code is duplicated here.
|
||||
|
|
|
|||
|
|
@ -6,9 +6,6 @@
|
|||
#set -x
|
||||
set -e
|
||||
|
||||
## provides function: pkg_installed
|
||||
source /usr/libexec/helper-scripts/package_installed_check.bsh
|
||||
|
||||
## Check if the VirtualBox host software is installed.
|
||||
if ! command -v vboxmanage &>/dev/null ; then
|
||||
## VirtualBox host software is not installed.
|
||||
|
|
@ -27,7 +24,7 @@ if ! test -f /usr/share/security-misc/lkrg/30-lkrg-virtualbox.conf ; then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
if ! pkg_installed "lkrg" ; then
|
||||
if ! package-installed-check "lkrg" ; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue