diff options
author | Oliver Tappe | 2008-01-27 13:37:13 +0100 |
---|---|---|
committer | Oliver Tappe | 2008-01-27 13:37:13 +0100 |
commit | 224da813f0632c67a7437762fae6871704fc341d (patch) | |
tree | 75f038e20fe80c213d886956a19c13926004a6ed /os-plugins | |
parent | adjusted following the recent discussion on the devel list: (diff) | |
download | core-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')
22 files changed, 45 insertions, 45 deletions
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/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 diff --git a/os-plugins/plugins/VMware/OpenSLX/OSPlugin/VMware.pm b/os-plugins/plugins/VMware/OpenSLX/OSPlugin/vmware.pm index c12750e7..69492160 100644 --- a/os-plugins/plugins/VMware/OpenSLX/OSPlugin/VMware.pm +++ b/os-plugins/plugins/VMware/OpenSLX/OSPlugin/vmware.pm @@ -8,10 +8,10 @@ # # General information about OpenSLX can be found at http://openslx.org/ # ----------------------------------------------------------------------------- -# VMware.pm -# - an example implementation of the OSPlugin API (i.e. an os-plugin) +# vmware.pm +# - declares necessary information for the vmware plugin # ----------------------------------------------------------------------------- -package OpenSLX::OSPlugin::VMware; +package OpenSLX::OSPlugin::vmware; use strict; use warnings; @@ -56,7 +56,7 @@ sub getAttrInfo applies_to_systems => 1, applies_to_clients => 0, description => unshiftHereDoc(<<' End-of-Here'), - should the 'VMware'-plugin be executed during boot? + should the 'vmware'-plugin be executed during boot? End-of-Here content_regex => qr{^(0|1)$}, content_descr => '1 means active - 0 means inactive', @@ -67,7 +67,7 @@ sub getAttrInfo applies_to_systems => 1, applies_to_clients => 0, description => unshiftHereDoc(<<' End-of-Here'), - the execution precedence of the 'VMware' plugin + the execution precedence of the 'vmware' plugin End-of-Here content_regex => qr{^\d\d$}, content_descr => 'allowed range is from 01-99', diff --git a/os-plugins/plugins/VMware/XX_VMware.sh b/os-plugins/plugins/VMware/XX_vmware.sh index ce0999b8..848bb10b 100644 --- a/os-plugins/plugins/VMware/XX_VMware.sh +++ b/os-plugins/plugins/VMware/XX_vmware.sh @@ -1,15 +1,15 @@ #! /bin/sh # check if the configuration file is available -if [ -e /initramfs/plugin-conf/VMware.conf ]; then +if [ -e /initramfs/plugin-conf/vmware.conf ]; then # load needed variables - . /initramfs/plugin-conf/VMware.conf + . /initramfs/plugin-conf/vmware.conf # Test if this plugin is activated - if [ $VMware_active -ne 0 ]; then + if [ $vmware_active -ne 0 ]; then - [ $DEBUGLEVEL -gt 0 ] && echo "executing the 'VMware' os-plugin ..."; + [ $DEBUGLEVEL -gt 0 ] && echo "executing the 'vmware' os-plugin ..."; # Load general configuration . /initramfs/machine-setup @@ -19,7 +19,7 @@ if [ -e /initramfs/plugin-conf/VMware.conf ]; then # D_INITDIR is defined in the following file: . /etc/sysconfig/config - echo " * VMware part 1" + echo " * vmware part 1" ############################################################################# # vmware stuff first part: two scenarios # * VM images in /usr/share/vmware - then simply link @@ -62,7 +62,7 @@ if [ -e /initramfs/plugin-conf/VMware.conf ]; then fi fi - echo " * VMware part 2" + echo " * vmware part 2" ############################################################################# # vmware stuff second part: setting up the environment @@ -166,7 +166,7 @@ if [ -e /initramfs/plugin-conf/VMware.conf ]; then /mnt/etc/vmware/vmnet8/nat 2>/dev/null fi - [ $DEBUGLEVEL -gt 0 ] && echo "done with 'VMware' os-plugin ..."; + [ $DEBUGLEVEL -gt 0 ] && echo "done with 'vmware' os-plugin ..."; fi fi diff --git a/os-plugins/plugins/Example/OpenSLX/OSPlugin/Example.pm b/os-plugins/plugins/example/OpenSLX/OSPlugin/example.pm index e872b023..787991c3 100644 --- a/os-plugins/plugins/Example/OpenSLX/OSPlugin/Example.pm +++ b/os-plugins/plugins/example/OpenSLX/OSPlugin/example.pm @@ -8,10 +8,10 @@ # # General information about OpenSLX can be found at http://openslx.org/ # ----------------------------------------------------------------------------- -# Example.pm +# example.pm # - an example implementation of the OSPlugin API (i.e. an os-plugin) # ----------------------------------------------------------------------------- -package OpenSLX::OSPlugin::Example; +package OpenSLX::OSPlugin::example; use strict; use warnings; @@ -61,7 +61,7 @@ sub getAttrInfo applies_to_systems => 1, applies_to_clients => 0, description => unshiftHereDoc(<<' End-of-Here'), - should the 'Example'-plugin be executed during boot? + should the 'example'-plugin be executed during boot? End-of-Here content_regex => qr{^(0|1)$}, content_descr => '1 means active - 0 means inactive', @@ -72,7 +72,7 @@ sub getAttrInfo applies_to_systems => 1, applies_to_clients => 0, description => unshiftHereDoc(<<' End-of-Here'), - the execution precedence of the 'Example' plugin + the execution precedence of the 'example' plugin End-of-Here content_regex => qr{^\d\d$}, content_descr => 'allowed range is from 01-99', diff --git a/os-plugins/plugins/Example/XX_Example.sh b/os-plugins/plugins/example/XX_example.sh index cee76daf..ae8bcd64 100644 --- a/os-plugins/plugins/Example/XX_Example.sh +++ b/os-plugins/plugins/example/XX_example.sh @@ -1,6 +1,6 @@ #! /bin/sh # -# stage3 part of 'Example' plugin - the runlevel script +# stage3 part of 'example' plugin - the runlevel script # # This basically is a runlevel script (just like you know them from 'init'), # whose purpose is to activate the plugin in stage3. The 'XX' at the beginning @@ -11,28 +11,28 @@ # In order to activate the corresponding plugin, each runlevel script should: # # a) read the corresponding configuration file (in this case: -# /initramfs/plugin-conf/Example.conf) +# /initramfs/plugin-conf/example.conf) # # b) analyse the client (look at the available hardware) and decide what # needs to be done, taking into account the settings given in the config # file # # c) activate the plugin by copying/linking appropriate plugin-specific files -# (in this case: from /mnt/opt/openslx/plugins/Example/), load required kernel +# (in this case: from /mnt/opt/openslx/plugins/example/), load required kernel # modules and whatever else might be necessary. # # if you have any questions regarding the use of this file, please drop a mail # to: ot@openslx.com, or join the IRC-channel '#openslx' (on freenode). -if [ -e /initramfs/plugin-conf/Example.conf ]; then - . /initramfs/plugin-conf/Example.conf +if [ -e /initramfs/plugin-conf/example.conf ]; then + . /initramfs/plugin-conf/example.conf if [ $Example_active -ne 0 ]; then - [ $DEBUGLEVEL -gt 0 ] && echo "executing the 'Example' os-plugin ..."; + [ $DEBUGLEVEL -gt 0 ] && echo "executing the 'example' os-plugin ..."; # for this example plugin, we simply take a filename from the # configuration and cat that file (output the smiley): - cat /mnt/opt/openslx/plugin-repo/Example/$preferred_side + cat /mnt/opt/openslx/plugin-repo/example/$preferred_side - [ $DEBUGLEVEL -gt 0 ] && echo "done with 'Example' os-plugin ..."; + [ $DEBUGLEVEL -gt 0 ] && echo "done with 'example' os-plugin ..."; fi fi diff --git a/os-plugins/plugins/Theme/OpenSLX/OSPlugin/Theme.pm b/os-plugins/plugins/theme/OpenSLX/OSPlugin/theme.pm index 44c7a89f..17170fbf 100644 --- a/os-plugins/plugins/Theme/OpenSLX/OSPlugin/Theme.pm +++ b/os-plugins/plugins/theme/OpenSLX/OSPlugin/theme.pm @@ -8,14 +8,14 @@ # # General information about OpenSLX can be found at http://openslx.org/ # ----------------------------------------------------------------------------- -# Theme.pm -# - implementation of the 'Theme' plugin, which applies theming to the +# 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; +package OpenSLX::OSPlugin::theme; use strict; use warnings; @@ -60,7 +60,7 @@ sub getAttrInfo applies_to_systems => 1, applies_to_clients => 0, description => unshiftHereDoc(<<' End-of-Here'), - should the 'Theme'-plugin be executed during boot? + should the 'theme'-plugin be executed during boot? End-of-Here content_regex => qr{^(0|1)$}, content_descr => '1 means active - 0 means inactive', @@ -71,7 +71,7 @@ sub getAttrInfo applies_to_systems => 1, applies_to_clients => 0, description => unshiftHereDoc(<<' End-of-Here'), - the execution precedence of the 'Theme' plugin + the execution precedence of the 'theme' plugin End-of-Here content_regex => qr{^\d\d$}, content_descr => 'allowed range is from 01-99', diff --git a/os-plugins/plugins/Theme/XX_Theme.sh b/os-plugins/plugins/theme/XX_theme.sh index a866295d..4d166c13 100644 --- a/os-plugins/plugins/Theme/XX_Theme.sh +++ b/os-plugins/plugins/theme/XX_theme.sh @@ -1,13 +1,13 @@ #! /bin/sh # -# stage3 part of 'Theme' plugin - the runlevel script +# 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 [ -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 ..."; + [ $DEBUGLEVEL -gt 0 ] && echo "executing the 'theme' os-plugin ..."; testmkd /mnt/var/lib/openslx/themes/displaymanager testmkd /mnt/var/lib/openslx/bin @@ -17,6 +17,6 @@ if [ -e /initramfs/plugin-conf/Theme.conf ]; then sed -i "s,UseTheme=false,UseTheme=true," /mnt/${D_KDMRCPATH}/kdmrc fi - [ $DEBUGLEVEL -gt 0 ] && echo "done with 'Theme' os-plugin ..."; + [ $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 index c249824c..e1f2b31d 100644 --- a/os-plugins/plugins/Theme/init-hooks/05-have-kernelvars/Theme.sh +++ b/os-plugins/plugins/theme/init-hooks/05-have-kernelvars/theme.sh @@ -3,9 +3,9 @@ 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 + export theme_nosplash=0 else - export Theme_nosplash=1 + export theme_nosplash=1 fi -[ ${Theme_nosplash} -eq 0 ] && /bin/splashy boot 2>/dev/null +[ ${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 new file mode 100644 index 00000000..cb89362e --- /dev/null +++ b/os-plugins/plugins/theme/init-hooks/15-have-ip-config/theme.sh @@ -0,0 +1 @@ +[ ${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 new file mode 100644 index 00000000..369f8d45 --- /dev/null +++ b/os-plugins/plugins/theme/init-hooks/25-have-network-root/theme.sh @@ -0,0 +1 @@ +[ ${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 new file mode 100644 index 00000000..ac91157f --- /dev/null +++ b/os-plugins/plugins/theme/init-hooks/40-started-hw-config/theme.sh @@ -0,0 +1 @@ +[ ${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 new file mode 100644 index 00000000..85a8279a --- /dev/null +++ b/os-plugins/plugins/theme/init-hooks/50-have-layered-fs/theme.sh @@ -0,0 +1 @@ +[ ${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 new file mode 100644 index 00000000..91a0ed45 --- /dev/null +++ b/os-plugins/plugins/theme/init-hooks/60-have-servconfig/theme.sh @@ -0,0 +1 @@ +[ ${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 new file mode 100644 index 00000000..170fba3e --- /dev/null +++ b/os-plugins/plugins/theme/init-hooks/70-before-plugins/theme.sh @@ -0,0 +1 @@ +[ ${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 index 2e976ac5..5d62b21f 100644 --- a/os-plugins/plugins/Theme/init-hooks/80-after-plugins/Theme.sh +++ b/os-plugins/plugins/theme/init-hooks/80-after-plugins/theme.sh @@ -1,4 +1,4 @@ -if [ ${Theme_nosplash} -eq 0 ]; then +if [ ${theme_nosplash} -eq 0 ]; then /bin/splashy_update "progress 80" >/dev/null 2>&1 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 new file mode 100644 index 00000000..4f01b512 --- /dev/null +++ b/os-plugins/plugins/theme/init-hooks/99-handing-over/theme.sh @@ -0,0 +1 @@ +[ ${theme_nosplash} -eq 0 ] && /bin/splashy_update "progress 100" >/dev/null 2>&1 |