diff options
Diffstat (limited to 'os-plugins/plugins/Example/XX_Example.sh')
-rw-r--r-- | os-plugins/plugins/Example/XX_Example.sh | 9 |
1 files changed, 7 insertions, 2 deletions
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 ..."; |