summaryrefslogtreecommitdiff
path: root/emulators/open-vm-tools/files/vmware-kmod.in
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2024-12-12 17:46:02 +0100
committerBaptiste Daroussin <bapt@FreeBSD.org>2024-12-12 18:18:23 +0100
commit77dbd57b8e9dad16375ba7a249b8046dd66d1c46 (patch)
treeec5ddb7ef8c8cfdd3307c26cd7352085b2d011fd /emulators/open-vm-tools/files/vmware-kmod.in
parentscience/PETSc: Correction (diff)
emulators/open-vm-{tools,kmod}: split the package
Split the package to build the kmods separatly! Building separately has multiple benefits: 1. it allows user to rebuild when they upgrade their kernel without rebuilding all of the tools which can take a long time. 2. it allows us to provide the modules in the new kmods package repository 3. it installs the kmods the in the same place as the regular kmods: /boot/modules It means we can probably get rid of the rc script in favor if letting users use kld_list mecanism but I will let this decision to the maintainer based on what it probably best for users. Approved by: garga (maintainer) Reviewed by: garga (maintainer) Differential Revision: https://reviews.freebsd.org/D48059
Diffstat (limited to 'emulators/open-vm-tools/files/vmware-kmod.in')
-rw-r--r--emulators/open-vm-tools/files/vmware-kmod.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/emulators/open-vm-tools/files/vmware-kmod.in b/emulators/open-vm-tools/files/vmware-kmod.in
index a62f03b465e8..9c6863af4387 100644
--- a/emulators/open-vm-tools/files/vmware-kmod.in
+++ b/emulators/open-vm-tools/files/vmware-kmod.in
@@ -13,9 +13,9 @@ checkvm_cmd="%%PREFIX%%/bin/vmware-checkvm > /dev/null"
vmware_mod_load()
{
echo -n "Loading $1 kernel module: "
- if kldstat -qn %%PREFIX%%/lib/vmware-tools/modules/drivers/$1.ko; then
+ if kldstat -qn $1.ko; then
echo "already loaded."
- elif kldload -q %%PREFIX%%/lib/vmware-tools/modules/drivers/$1.ko; then
+ elif kldload -q $1.ko; then
echo "done."
else
echo "failed."
@@ -25,7 +25,7 @@ vmware_mod_load()
vmware_mod_status()
{
echo -n "Checking $1 kernel module: "
- if kldstat -qn %%PREFIX%%/lib/vmware-tools/modules/drivers/$1.ko; then
+ if kldstat -qn $1.ko; then
echo "loaded."
else
echo "not loaded"