Skip to content

Commit

Permalink
sysutils/vmware: flat service launcher; #5
Browse files Browse the repository at this point in the history
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.  :)
  • Loading branch information
fichtner committed Oct 28, 2015
1 parent db39ff0 commit e4fe3fa
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 27 deletions.
11 changes: 2 additions & 9 deletions sysutils/vmware/+POST_INSTALL
Original file line number Diff line number Diff line change
@@ -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
4 changes: 0 additions & 4 deletions sysutils/vmware/+PRE_DEINSTALL

This file was deleted.

2 changes: 1 addition & 1 deletion sysutils/vmware/Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 5 additions & 0 deletions sysutils/vmware/src/etc/rc.syshook.d/vmware.start
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

export vmware_guestd_enable="YES"

/usr/local/etc/rc.d/vmware-guestd start

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit e4fe3fa

Please sign in to comment.