summaryrefslogtreecommitdiffstats
path: root/os-plugins
diff options
context:
space:
mode:
authorOliver Tappe2007-11-04 14:46:45 +0100
committerOliver Tappe2007-11-04 14:46:45 +0100
commitb2f8fede0274016f7a73a20232ccb23f888a5f5e (patch)
treef176100f03bc7ce1ea4548277c7b5d32f3d72999 /os-plugins
parent* started to work on group-support (unfinished!) (diff)
downloadcore-b2f8fede0274016f7a73a20232ccb23f888a5f5e.tar.gz
core-b2f8fede0274016f7a73a20232ccb23f888a5f5e.tar.xz
core-b2f8fede0274016f7a73a20232ccb23f888a5f5e.zip
* cosmetical changes
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1405 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins')
-rw-r--r--os-plugins/plugins/Example/OpenSLX/OSPlugin/Example.pm4
-rw-r--r--os-plugins/plugins/Example/XX_Example.sh9
2 files changed, 9 insertions, 4 deletions
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 ...";