From 1575a3b42a6aa1a4ee6af6feab37b3af87cdfe4c Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Wed, 12 Aug 2009 09:49:14 +0000 Subject: Fix to bootsplash.pm ... git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@3082 95ad53e4-c205-0410-b2fa-d234c58c8868 --- os-plugins/plugins/bootsplash/OpenSLX/OSPlugin/bootsplash.pm | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'os-plugins/plugins') diff --git a/os-plugins/plugins/bootsplash/OpenSLX/OSPlugin/bootsplash.pm b/os-plugins/plugins/bootsplash/OpenSLX/OSPlugin/bootsplash.pm index c370267a..c40c3f24 100644 --- a/os-plugins/plugins/bootsplash/OpenSLX/OSPlugin/bootsplash.pm +++ b/os-plugins/plugins/bootsplash/OpenSLX/OSPlugin/bootsplash.pm @@ -127,24 +127,27 @@ sub installationPhase my $pluginRepoPath = "$self->{pluginRepositoryPath}"; my $initFile = newInitFile(); - my $do_stop = unshiftHereDoc(<<" End-of-Here"); + my $do_stop = unshiftHereDoc(<<' End-of-Here'); /opt/openslx/plugin-repo/bootsplash/bin/splashy shutdown sleep 1 - /opt/openslx/plugin-repo/bootsplash/bin/splashy_update \\ - "progress 100\" 2>/dev/null + /opt/openslx/plugin-repo/bootsplash/bin/splashy_update \ + "progress 100" 2>/dev/null End-of-Here # add helper function to initfile # first parameter name of the function # second parameter content of the function - $initFile->addFunction('do_start', '# do nothing here'); + $initFile->addFunction('do_start', " : # do nothing here"); $initFile->addFunction('do_stop', $do_stop); + $initFile->addFunction('do_restart', " : # do nothing here"); # place a call of the helper function in the stop block # of the init file # first parameter name of the function # second parameter name of the block + $initFile->addFunctionCall('do_start', 'start'); $initFile->addFunctionCall('do_stop', 'stop'); + $initFile->addFunctionCall('do_restart', 'restart'); my $distro = (split('-',$self->{'os-plugin-engine'}->distroName()))[0]; -- cgit v1.2.3-55-g7522