virtualization/app-emulation/vmware-server/files/2.0.2.203138/012_all_rc-config.patch

26 lines
867 B
Diff
Raw Normal View History

--- bin.old/vmware-config.pl 2009-07-02 17:56:08.873568674 -0400
+++ bin/vmware-config.pl 2009-07-02 17:56:59.000000000 -0400
@@ -1341,6 +1341,14 @@
}
}
+ # Try using Genoot's rc-config
+ if ($gHelper{'rc-config'} ne '') {
+ if(0 == system(shell_string($gHelper{'rc-config'}) . ' add '
+ . $service . ' default')) {
+ return;
+ }
+ }
+
# Set up vmware to start/stop at run levels 2, 3 and 5
link_runlevel(2, $service, $S_level, $K_level);
link_runlevel(3, $service, $S_level, $K_level);
@@ -2552,6 +2560,7 @@
}
$gHelper{'insserv'} = internal_which('insserv');
$gHelper{'chkconfig'} = internal_which('/sbin/chkconfig');
+ $gHelper{'rc-config'} = internal_which('/usr/bin/rc-config');
if (vmware_product() eq 'server' &&
$gHelper{'chkconfig'} eq '') {
error('No initscript installer found.' . "\n\n");