aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-08-08 19:45:14 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-08-08 19:45:14 -0400
commitabf3e17817a8e541cb8fb7fcb096b8b03b1d3eaa (patch)
treeb3c8bcf5b06335038edf952b62c3b400cd064066 /config
parent96c978829f0d06fa906c83a98b8192ecca4d55bf (diff)
downloadpfsense-packages-abf3e17817a8e541cb8fb7fcb096b8b03b1d3eaa.tar.gz
pfsense-packages-abf3e17817a8e541cb8fb7fcb096b8b03b1d3eaa.tar.bz2
pfsense-packages-abf3e17817a8e541cb8fb7fcb096b8b03b1d3eaa.zip
Add comments
Diffstat (limited to 'config')
-rw-r--r--config/open-vm-tools/open-vm-tools.inc21
1 files changed, 19 insertions, 2 deletions
diff --git a/config/open-vm-tools/open-vm-tools.inc b/config/open-vm-tools/open-vm-tools.inc
index 8ff2cecc..a81489d6 100644
--- a/config/open-vm-tools/open-vm-tools.inc
+++ b/config/open-vm-tools/open-vm-tools.inc
@@ -9,6 +9,12 @@ function open_vm_tools_install() {
$vmware_guestd = <<<EOF
#!/bin/sh
#
+# This file was automatically generated
+# by the pfSense package manager.
+#
+# Do not edit this file. Edit
+# /usr/local/pkg/open-vm-tools.inc instead.
+#
# PROVIDE: vmware-guestd
# REQUIRE: DAEMON
# BEFORE: LOGIN
@@ -39,6 +45,12 @@ EOF;
$vmware_kmod = <<<EOF
#!/bin/sh
#
+# This file was automatically generated
+# by the pfSense package manager.
+#
+# Do not edit this file. Edit
+# /usr/local/pkg/open-vm-tools.inc instead.
+#
# PROVIDE: vmware-kmod
# REQUIRE: FILESYSTEMS
# BEFORE: netif
@@ -80,7 +92,6 @@ stop_cmd=":"
load_rc_config \$name
vmware_guest_vmmemctl_enable="YES"
-vmware_guest_vmmemctl_enable="YES"
run_rc_command "\$1"
# VMware kernel module: vmxnet
@@ -121,19 +132,25 @@ run_rc_command "\$1"
EOF;
+ // Write out conf files.
$fd = fopen("/usr/local/etc/rc.d/vmware-guestd.sh", "w");
if(!$fd)
die("Could not open /usr/local/etc/rc.d/vmware-guestd.sh or writing");
fwrite($fd, $vmware_guestd);
fclose($fd);
-
$fd = fopen("/usr/local/etc/rc.d/vmware-kmod.sh", "w");
if(!$fd)
die("Could not open /usr/local/etc/rc.d/vmware-kmod.sh or writing");
fwrite($fd, $vmware_kmod);
fclose($fd);
+ // Remove non used files
+ unlink_if_exists("/usr/local/etc/rc.d/vmware-kmod");
+ unlink_if_exists("/usr/local/etc/rc.d/vmware-guestd");
+
+ // Make sure files are executable.
exec("chmod a+rx /usr/local/etc/rc.d/*.sh");
+
}
?> \ No newline at end of file