mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
sysutils/vmware: flat service launcher; #5
Switch to an easier way of doing service launching, solving the early boot issue for ports-based kernel modules by introducing the rc.syshook script. That's already a lot better, but will need further refinement. :)
This commit is contained in:
@@ -1,9 +1,2 @@
|
||||
touch /boot/loader.conf
|
||||
cp /boot/loader.conf /boot/loader.conf.bak
|
||||
(grep -v '^vmxnet_load=' /boot/loader.conf.bak; \
|
||||
echo 'vmxnet_load="YES"') > /boot/loader.conf
|
||||
rm -f /boot/loader.conf.bak
|
||||
|
||||
configctl template reload OPNsense.VMware
|
||||
|
||||
/usr/local/opnsense/scripts/vmware/setup.sh
|
||||
/usr/local/etc/rc.syshook.d/vmware.early
|
||||
/usr/local/etc/rc.syshook.d/vmware.start
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
touch /boot/loader.conf
|
||||
cp /boot/loader.conf /boot/loader.conf.bak
|
||||
(grep -v '^vmxnet_load=' /boot/loader.conf.bak) > /boot/loader.conf
|
||||
rm -f /boot/loader.conf.bak
|
||||
@@ -1,5 +1,5 @@
|
||||
PLUGIN_NAME= vmware
|
||||
PLUGIN_VERSION= 1.2
|
||||
PLUGIN_VERSION= 1.3
|
||||
PLUGIN_COMMENT= VMware tools wrapper
|
||||
PLUGIN_DEPENDS= open-vm-tools-nox11
|
||||
PLUGIN_MAINTAINER= franco@opnsense.org
|
||||
|
||||
-2
@@ -4,7 +4,5 @@ export vmware_guest_vmblock_enable="YES"
|
||||
export vmware_guest_vmhgfs_enable="YES"
|
||||
export vmware_guest_vmmemctl_enable="YES"
|
||||
export vmware_guest_vmxnet_enable="YES"
|
||||
export vmware_guestd_enable="YES"
|
||||
|
||||
/usr/local/etc/rc.d/vmware-kmod start
|
||||
/usr/local/etc/rc.d/vmware-guestd start
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
export vmware_guestd_enable="YES"
|
||||
|
||||
/usr/local/etc/rc.d/vmware-guestd start
|
||||
@@ -1,8 +0,0 @@
|
||||
name: os-vmware
|
||||
version: 1.0
|
||||
origin: opnsense/os-vmware
|
||||
comment: VMware tools wrapper
|
||||
desc: do we really need this file, Ad?
|
||||
maintainer: franco@opnsense.org
|
||||
www: https://opnsense.org
|
||||
prefix: /
|
||||
@@ -1 +0,0 @@
|
||||
rc.conf.d:/etc/rc.conf.d/vmware
|
||||
@@ -1,2 +0,0 @@
|
||||
# rc vars for open-vm-tools are dynamic, so launch the launcher
|
||||
/usr/local/opnsense/scripts/vmware/setup.sh
|
||||
Reference in New Issue
Block a user