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:
Franco Fichtner 2015-10-25 19:38:34 +01:00
parent db39ff085e
commit e4fe3fa502
8 changed files with 8 additions and 27 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -0,0 +1,5 @@
#!/bin/sh
export vmware_guestd_enable="YES"
/usr/local/etc/rc.d/vmware-guestd start

View file

@ -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: /

View file

@ -1 +0,0 @@
rc.conf.d:/etc/rc.conf.d/vmware

View file

@ -1,2 +0,0 @@
# rc vars for open-vm-tools are dynamic, so launch the launcher
/usr/local/opnsense/scripts/vmware/setup.sh