summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/Theme
diff options
context:
space:
mode:
authorOliver Tappe2008-01-27 13:37:13 +0100
committerOliver Tappe2008-01-27 13:37:13 +0100
commit224da813f0632c67a7437762fae6871704fc341d (patch)
tree75f038e20fe80c213d886956a19c13926004a6ed /os-plugins/plugins/Theme
parentadjusted following the recent discussion on the devel list: (diff)
downloadcore-224da813f0632c67a7437762fae6871704fc341d.tar.gz
core-224da813f0632c67a7437762fae6871704fc341d.tar.xz
core-224da813f0632c67a7437762fae6871704fc341d.zip
* renamed all plugins to lowercase in order to be consistent with
the attribute names git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1497 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/Theme')
-rw-r--r--os-plugins/plugins/Theme/OpenSLX/OSPlugin/Theme.pm94
-rw-r--r--os-plugins/plugins/Theme/XX_Theme.sh22
-rw-r--r--os-plugins/plugins/Theme/init-hooks/05-have-kernelvars/Theme.sh11
-rw-r--r--os-plugins/plugins/Theme/init-hooks/15-have-ip-config/Theme.sh1
-rw-r--r--os-plugins/plugins/Theme/init-hooks/25-have-network-root/Theme.sh1
-rw-r--r--os-plugins/plugins/Theme/init-hooks/40-started-hw-config/Theme.sh1
-rw-r--r--os-plugins/plugins/Theme/init-hooks/50-have-layered-fs/Theme.sh1
-rw-r--r--os-plugins/plugins/Theme/init-hooks/60-have-servconfig/Theme.sh1
-rw-r--r--os-plugins/plugins/Theme/init-hooks/70-before-plugins/Theme.sh1
-rw-r--r--os-plugins/plugins/Theme/init-hooks/80-after-plugins/Theme.sh19
-rw-r--r--os-plugins/plugins/Theme/init-hooks/99-handing-over/Theme.sh1
11 files changed, 0 insertions, 153 deletions
diff --git a/os-plugins/plugins/Theme/OpenSLX/OSPlugin/Theme.pm b/os-plugins/plugins/Theme/OpenSLX/OSPlugin/Theme.pm
deleted file mode 100644
index 44c7a89f..00000000
--- a/os-plugins/plugins/Theme/OpenSLX/OSPlugin/Theme.pm
+++ /dev/null
@@ -1,94 +0,0 @@
-# Copyright (c) 2007 - OpenSLX GmbH
-#
-# This program is free software distributed under the GPL version 2.
-# See http://openslx.org/COPYING
-#
-# If you have any feedback please consult http://openslx.org/feedback and
-# send your suggestions, praise, or complaints to feedback@openslx.org
-#
-# General information about OpenSLX can be found at http://openslx.org/
-# -----------------------------------------------------------------------------
-# Theme.pm
-# - implementation of the 'Theme' plugin, which applies theming to the
-# following places:
-# + bootsplash (via splashy)
-# + displaymanager (gdm, kdm, ...)
-# + desktop (to be done)
-# -----------------------------------------------------------------------------
-package OpenSLX::OSPlugin::Theme;
-
-use strict;
-use warnings;
-
-use base qw(OpenSLX::OSPlugin::Base);
-
-use OpenSLX::Basics;
-use OpenSLX::Utils;
-
-sub new
-{
- my $class = shift;
-
- my $self = {};
-
- return bless $self, $class;
-}
-
-sub getInfo
-{
- my $self = shift;
-
- return {
- description => unshiftHereDoc(<<' End-of-Here'),
- applies a graphical theme to the bootsplash and the displaymanager
- End-of-Here
- mustRunAfter => [],
- };
-}
-
-sub getAttrInfo
-{ # returns a hash-ref with information about all attributes supported
- # by this specific plugin
- my $self = shift;
-
- # This default configuration will be added as attributes to the default
- # system, such that it can be overruled for any specific system by means
- # of slxconfig.
- return {
- # attribute 'active' is mandatory for all plugins
- 'theme::active' => {
- applies_to_systems => 1,
- applies_to_clients => 0,
- description => unshiftHereDoc(<<' End-of-Here'),
- should the 'Theme'-plugin be executed during boot?
- End-of-Here
- content_regex => qr{^(0|1)$},
- content_descr => '1 means active - 0 means inactive',
- default => '1',
- },
- # attribute 'precedence' is mandatory for all plugins
- 'theme::precedence' => {
- applies_to_systems => 1,
- applies_to_clients => 0,
- description => unshiftHereDoc(<<' End-of-Here'),
- the execution precedence of the 'Theme' plugin
- End-of-Here
- content_regex => qr{^\d\d$},
- content_descr => 'allowed range is from 01-99',
- default => 30,
- },
-
- 'theme::name' => {
- applies_to_systems => 1,
- applies_to_clients => 0,
- description => unshiftHereDoc(<<' End-of-Here'),
- the name of the theme to apply (or unset for no theme)
- End-of-Here
- content_regex => undef,
- content_descr => undef,
- default => 'openslx',
- },
- };
-}
-
-1;
diff --git a/os-plugins/plugins/Theme/XX_Theme.sh b/os-plugins/plugins/Theme/XX_Theme.sh
deleted file mode 100644
index a866295d..00000000
--- a/os-plugins/plugins/Theme/XX_Theme.sh
+++ /dev/null
@@ -1,22 +0,0 @@
-#! /bin/sh
-#
-# stage3 part of 'Theme' plugin - the runlevel script
-#
-. /etc/functions
-. /etc/sysconfig/config
-if [ -e /initramfs/plugin-conf/Theme.conf ]; then
- . /initramfs/plugin-conf/Theme.conf
- if [ $Theme_active -ne 0 ]; then
- [ $DEBUGLEVEL -gt 0 ] && echo "executing the 'Theme' os-plugin ...";
-
- testmkd /mnt/var/lib/openslx/themes/displaymanager
- testmkd /mnt/var/lib/openslx/bin
- if [ -d /usr/share/themes/displaymanager ]; then
- cp -a /usr/share/themes/displaymanager \
- /mnt/var/lib/openslx/themes
- sed -i "s,UseTheme=false,UseTheme=true," /mnt/${D_KDMRCPATH}/kdmrc
- fi
-
- [ $DEBUGLEVEL -gt 0 ] && echo "done with 'Theme' os-plugin ...";
- fi
-fi
diff --git a/os-plugins/plugins/Theme/init-hooks/05-have-kernelvars/Theme.sh b/os-plugins/plugins/Theme/init-hooks/05-have-kernelvars/Theme.sh
deleted file mode 100644
index c249824c..00000000
--- a/os-plugins/plugins/Theme/init-hooks/05-have-kernelvars/Theme.sh
+++ /dev/null
@@ -1,11 +0,0 @@
-# splashy depends on /proc/fb with VESA
-# only activate with kernel option quiet and no debuglevel
-if grep -E "(VESA|VGA)" /proc/fb > /dev/null 2>&1 \
- && grep -qi " quiet " /proc/cmdline > /dev/null 2>&1 \
- && [ $DEBUGLEVEL -eq 0 ] ; then
- export Theme_nosplash=0
-else
- export Theme_nosplash=1
-fi
-
-[ ${Theme_nosplash} -eq 0 ] && /bin/splashy boot 2>/dev/null
diff --git a/os-plugins/plugins/Theme/init-hooks/15-have-ip-config/Theme.sh b/os-plugins/plugins/Theme/init-hooks/15-have-ip-config/Theme.sh
deleted file mode 100644
index 357db1fc..00000000
--- a/os-plugins/plugins/Theme/init-hooks/15-have-ip-config/Theme.sh
+++ /dev/null
@@ -1 +0,0 @@
-[ ${Theme_nosplash} = 0 ] && /bin/splashy_update "progress 15" >/dev/null 2>&1
diff --git a/os-plugins/plugins/Theme/init-hooks/25-have-network-root/Theme.sh b/os-plugins/plugins/Theme/init-hooks/25-have-network-root/Theme.sh
deleted file mode 100644
index a0e4c7a9..00000000
--- a/os-plugins/plugins/Theme/init-hooks/25-have-network-root/Theme.sh
+++ /dev/null
@@ -1 +0,0 @@
-[ ${Theme_nosplash} = 0 ] && /bin/splashy_update "progress 25" >/dev/null 2>&1
diff --git a/os-plugins/plugins/Theme/init-hooks/40-started-hw-config/Theme.sh b/os-plugins/plugins/Theme/init-hooks/40-started-hw-config/Theme.sh
deleted file mode 100644
index 934162c5..00000000
--- a/os-plugins/plugins/Theme/init-hooks/40-started-hw-config/Theme.sh
+++ /dev/null
@@ -1 +0,0 @@
-[ ${Theme_nosplash} = 0 ] && /bin/splashy_update "progress 40" >/dev/null 2>&1
diff --git a/os-plugins/plugins/Theme/init-hooks/50-have-layered-fs/Theme.sh b/os-plugins/plugins/Theme/init-hooks/50-have-layered-fs/Theme.sh
deleted file mode 100644
index 6801826d..00000000
--- a/os-plugins/plugins/Theme/init-hooks/50-have-layered-fs/Theme.sh
+++ /dev/null
@@ -1 +0,0 @@
-[ ${Theme_nosplash} -eq 0 ] && /bin/splashy_update "progress 50" >/dev/null 2>&1
diff --git a/os-plugins/plugins/Theme/init-hooks/60-have-servconfig/Theme.sh b/os-plugins/plugins/Theme/init-hooks/60-have-servconfig/Theme.sh
deleted file mode 100644
index 9a21f208..00000000
--- a/os-plugins/plugins/Theme/init-hooks/60-have-servconfig/Theme.sh
+++ /dev/null
@@ -1 +0,0 @@
-[ ${Theme_nosplash} = 0 ] && /bin/splashy_update "progress 60" >/dev/null 2>&1
diff --git a/os-plugins/plugins/Theme/init-hooks/70-before-plugins/Theme.sh b/os-plugins/plugins/Theme/init-hooks/70-before-plugins/Theme.sh
deleted file mode 100644
index 96603a5a..00000000
--- a/os-plugins/plugins/Theme/init-hooks/70-before-plugins/Theme.sh
+++ /dev/null
@@ -1 +0,0 @@
-[ ${Theme_nosplash} = 0 ] && /bin/splashy_update "progress 70" >/dev/null 2>&1
diff --git a/os-plugins/plugins/Theme/init-hooks/80-after-plugins/Theme.sh b/os-plugins/plugins/Theme/init-hooks/80-after-plugins/Theme.sh
deleted file mode 100644
index 2e976ac5..00000000
--- a/os-plugins/plugins/Theme/init-hooks/80-after-plugins/Theme.sh
+++ /dev/null
@@ -1,19 +0,0 @@
-if [ ${Theme_nosplash} -eq 0 ]; then
-
- /bin/splashy_update "progress 80" >/dev/null 2>&1
-
- # make the splashy_update binary available in stage4 ...
- mkdir -p /mnt/var/lib/openslx/bin
- cp -a /bin/splashy_update /mnt/var/lib/openslx/bin
-
- # ... and create a runlevelscript that will stop splashy somewhere near
- # the end of stage4
- d_mkrlscript init splashy.stop "Stopping Splashy ..."
- echo -e "\t/var/lib/openslx/bin/splashy_update exit 2>/dev/null \
- \n\ttype killall >/dev/null 2>&1 && killall -9 splashy \
- \n\trm -f /var/lib/openslx/bin/splashy_update 2>/dev/null" \
- >>/mnt/etc/${D_INITDIR}/splashy.stop
- d_mkrlscript close splashy.stop ""
- D_INITSCRIPTS="${D_INITSCRIPTS} splashy.stop"
-
-fi \ No newline at end of file
diff --git a/os-plugins/plugins/Theme/init-hooks/99-handing-over/Theme.sh b/os-plugins/plugins/Theme/init-hooks/99-handing-over/Theme.sh
deleted file mode 100644
index 7a2c5856..00000000
--- a/os-plugins/plugins/Theme/init-hooks/99-handing-over/Theme.sh
+++ /dev/null
@@ -1 +0,0 @@
-[ ${Theme_nosplash} -eq 0 ] && /bin/splashy_update "progress 100" >/dev/null 2>&1