diff options
author | Oliver Tappe | 2008-02-16 18:18:42 +0100 |
---|---|---|
committer | Oliver Tappe | 2008-02-16 18:18:42 +0100 |
commit | 78a77be447311f092e92c19b0371379f533c4ec5 (patch) | |
tree | c6d0fd0d52cd29e346362250d3579e0ca8f2be3b /os-plugins/plugins/example/OpenSLX/OSPlugin/example.pm | |
parent | * when invoking init-hook scripts and plugin scripts, now only *.sh files (diff) | |
download | core-78a77be447311f092e92c19b0371379f533c4ec5.tar.gz core-78a77be447311f092e92c19b0371379f533c4ec5.tar.xz core-78a77be447311f092e92c19b0371379f533c4ec5.zip |
Refactored call-out to plugins when making the initramfs:
* The code for setting up the plugin in the initramfs has been moved into
the plugin base, as this makes it possible for any plugin to override it
(should the need ever arise).
* The plugin scripts themselves are now being copied into the initramfs,
instead of being part of the config-TGZ - they are static scripts, so
there's no need to make them part of the config. Only the actual settings
of each plugin are part of the config-TGZ now.
* Cleaned up most accesses from plugins to private data of the makeInitRamFS-
engine.
I have tested with these changes with Ubuntu and Debian, and splashy still works
for both, so it should be ok.
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1551 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/example/OpenSLX/OSPlugin/example.pm')
-rw-r--r-- | os-plugins/plugins/example/OpenSLX/OSPlugin/example.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/os-plugins/plugins/example/OpenSLX/OSPlugin/example.pm b/os-plugins/plugins/example/OpenSLX/OSPlugin/example.pm index 787991c3..252e8ae7 100644 --- a/os-plugins/plugins/example/OpenSLX/OSPlugin/example.pm +++ b/os-plugins/plugins/example/OpenSLX/OSPlugin/example.pm @@ -30,7 +30,9 @@ sub new { my $class = shift; - my $self = {}; + my $self = { + name => 'example', + }; return bless $self, $class; } |