diff options
author | Sebastian Schmelzer | 2008-10-14 23:07:15 +0200 |
---|---|---|
committer | Sebastian Schmelzer | 2008-10-14 23:07:15 +0200 |
commit | 1d927e87ad5183c56e3b24e403c1a1c6e53795d7 (patch) | |
tree | 982fdffcf64e4eab02a11383844d8df645a36fe3 /os-plugins/plugins/x11vnc/OpenSLX/OSPlugin/x11vnc.pm | |
parent | removed bug where kdmrc.sysconfig is not replaced (diff) | |
download | core-1d927e87ad5183c56e3b24e403c1a1c6e53795d7.tar.gz core-1d927e87ad5183c56e3b24e403c1a1c6e53795d7.tar.xz core-1d927e87ad5183c56e3b24e403c1a1c6e53795d7.zip |
* added distro specific runlevel scripts
* fixed bug #281
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2300 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/x11vnc/OpenSLX/OSPlugin/x11vnc.pm')
-rw-r--r-- | os-plugins/plugins/x11vnc/OpenSLX/OSPlugin/x11vnc.pm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/os-plugins/plugins/x11vnc/OpenSLX/OSPlugin/x11vnc.pm b/os-plugins/plugins/x11vnc/OpenSLX/OSPlugin/x11vnc.pm index 37dc14bd..de800c42 100644 --- a/os-plugins/plugins/x11vnc/OpenSLX/OSPlugin/x11vnc.pm +++ b/os-plugins/plugins/x11vnc/OpenSLX/OSPlugin/x11vnc.pm @@ -184,9 +184,14 @@ sub installationPhase # get path of files we need to install my $pluginFilesPath = "$openslxBasePath/lib/plugins/$self->{'name'}/files"; + my $script = $self->{distro}->fillRunlevelScript(); # copy all needed files now - copyFile("$pluginFilesPath/x11vnc", "/etc/init.d"); + copyFile("$pluginFilesPath/x11vnc-init", "$pluginRepositoryPath"); + + spitFile("/etc/init.d/x11vnc", $script); + chmod 0755, "/etc/init.d/x11vnc"; + vlog(3, "install init file"); if ( !-x "/usr/bin/x11vnc" ) { |