From b2f8fede0274016f7a73a20232ccb23f888a5f5e Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Sun, 4 Nov 2007 13:46:45 +0000 Subject: * cosmetical changes git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1405 95ad53e4-c205-0410-b2fa-d234c58c8868 --- os-plugins/plugins/Example/OpenSLX/OSPlugin/Example.pm | 4 ++-- os-plugins/plugins/Example/XX_Example.sh | 9 +++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'os-plugins') diff --git a/os-plugins/plugins/Example/OpenSLX/OSPlugin/Example.pm b/os-plugins/plugins/Example/OpenSLX/OSPlugin/Example.pm index bd90d306..9ade866a 100644 --- a/os-plugins/plugins/Example/OpenSLX/OSPlugin/Example.pm +++ b/os-plugins/plugins/Example/OpenSLX/OSPlugin/Example.pm @@ -84,8 +84,8 @@ sub installationPhase # the temporary folder, this time from inside the chroot # for this example plugin, we simply create two files: - spitFile("$pluginRepositoryPath/left", "(-;\n"); - spitFile("$pluginRepositoryPath/right", ";-)\n"); + spitFile("$pluginRepositoryPath/right", "(-;\n"); + spitFile("$pluginRepositoryPath/left", ";-)\n"); } sub postInstallationPhase diff --git a/os-plugins/plugins/Example/XX_Example.sh b/os-plugins/plugins/Example/XX_Example.sh index 88c991e8..6c1bc8ad 100644 --- a/os-plugins/plugins/Example/XX_Example.sh +++ b/os-plugins/plugins/Example/XX_Example.sh @@ -28,11 +28,16 @@ if ! [ -e /initramfs/plugin-conf/Example.conf ]; then exit 1 fi -echo "executing the 'Example' os-plugin ..."; # for this example plugin, we simply take a filename from the configuration ... . /initramfs/plugin-conf/Example.conf -# ... and cat that file: +if ! [ -n $active]; then + exit 0 +fi + +echo "executing the 'Example' os-plugin ..."; + +# ... and cat that file (output the smiley): cat /mnt/opt/openslx/plugin-repo/Example/$preferred_side echo "done with 'Example' os-plugin ..."; -- cgit v1.2.3-55-g7522