From b549727cf82a94ba810540bb9d7d27fd6d6c6dd8 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Sat, 21 Aug 2010 15:57:07 +0200 Subject: Small fixes for Xorg keyboard of SuSE11.3 and Ubuntu functions ... --- os-plugins/plugins/xserver/OpenSLX/Distro/Suse.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'os-plugins') diff --git a/os-plugins/plugins/xserver/OpenSLX/Distro/Suse.pm b/os-plugins/plugins/xserver/OpenSLX/Distro/Suse.pm index 29342f3b..7a706019 100644 --- a/os-plugins/plugins/xserver/OpenSLX/Distro/Suse.pm +++ b/os-plugins/plugins/xserver/OpenSLX/Distro/Suse.pm @@ -41,6 +41,7 @@ sub setupXserverScript # add stuff to the script generated via Base.pm $script .= unshiftHereDoc(<<' End-of-Here'); # SuSE specific extension to stage3 xserver.sh + testmkd /mnt/etc/X11/xorg.conf.d # Add InputClass to proper setup the keyboard and other input echo 'Section "InputClass" Identifier "evdev pointer catchall" @@ -75,7 +76,6 @@ sub setupXserverScript # Xorg hardware is autodetected, so no module information provided [ -z "${xmodule}" ] && \ sed "/Section \"Device\"/,/EndSection/d" -i ${xfc} - testmkd /mnt/etc/X11/xorg.conf.d testmkd /mnt/var/lib/xkb/compiled testmkd /mnt/var/lib/X11 testmkd /mnt/var/lib/xdm/authdir/authfiles 0700 -- cgit v1.2.3-55-g7522 From 88bd38d28c18eff5239867933a816ff5100d31a5 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Sat, 21 Aug 2010 16:06:38 +0200 Subject: fix typo --- os-plugins/plugins/syslog/OpenSLX/OSPlugin/syslog.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'os-plugins') diff --git a/os-plugins/plugins/syslog/OpenSLX/OSPlugin/syslog.pm b/os-plugins/plugins/syslog/OpenSLX/OSPlugin/syslog.pm index 2952f2e7..e19ba627 100644 --- a/os-plugins/plugins/syslog/OpenSLX/OSPlugin/syslog.pm +++ b/os-plugins/plugins/syslog/OpenSLX/OSPlugin/syslog.pm @@ -127,7 +127,7 @@ sub installationPhase my $engine = $self->{'os-plugin-engine'}; if ($self->{kind} eq 'rsyslog' && !isInPath($self->{distro}->getBinaryName('rsyslog'))) { - $engine->installPackages($self->{distro}->getPackageName('syslog-ng')); + $engine->installPackages($self->{distro}->getPackageName('rsyslog')); } if ($self->{kind} eq 'syslog-ng' && !isInPath('syslog-ng')) { -- cgit v1.2.3-55-g7522 From 734c8844698eb86d62b3251fb89dcd0edc802a67 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Sat, 21 Aug 2010 17:13:57 +0200 Subject: add stage3 script for rsyslog --- os-plugins/plugins/syslog/OpenSLX/OSPlugin/syslog.pm | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'os-plugins') diff --git a/os-plugins/plugins/syslog/OpenSLX/OSPlugin/syslog.pm b/os-plugins/plugins/syslog/OpenSLX/OSPlugin/syslog.pm index e19ba627..87c3d9e5 100644 --- a/os-plugins/plugins/syslog/OpenSLX/OSPlugin/syslog.pm +++ b/os-plugins/plugins/syslog/OpenSLX/OSPlugin/syslog.pm @@ -190,7 +190,21 @@ sub _setupRsyslog my $self = shift; my $attrs = shift; - return; + my $repoPath = $self->{pluginRepositoryPath}; + + my $kind = lc($attrs->{'syslog::kind'}); + my $rlInfo = $self->{distro}->runlevelInfo($kind); + + my $conf = unshiftHereDoc(<<" End-of-Here"); + #!/bin/ash + # written by OpenSLX-plugin 'syslog' + + rllinker $rlInfo->{scriptName} $rlInfo->{startAt} $rlInfo->{stopAt} + + End-of-Here + spitFile("$repoPath/syslog.sh", $conf); + + return; } sub _setupSyslogNG -- cgit v1.2.3-55-g7522 From a07c2e85704afcf3d36e85f43c2c4f6617eb7258 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Sat, 21 Aug 2010 19:40:08 +0200 Subject: bootsplash shutdown fix for ubuntu 10.04+ --- os-plugins/plugins/bootsplash/XX_bootsplash.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'os-plugins') diff --git a/os-plugins/plugins/bootsplash/XX_bootsplash.sh b/os-plugins/plugins/bootsplash/XX_bootsplash.sh index 924d304c..8a829fc7 100644 --- a/os-plugins/plugins/bootsplash/XX_bootsplash.sh +++ b/os-plugins/plugins/bootsplash/XX_bootsplash.sh @@ -32,6 +32,25 @@ if [ -e /initramfs/plugin-conf/bootsplash.conf ]; then chmod 744 /mnt/etc/init.d/bootsplash.halt cp -a /etc/splashy /mnt/etc/ rllinker "bootsplash.halt" 1 1 + + # fix for ubuntu 1004+ + for i in init init.inactive; do + for j in kdm gdm xdm lxdm; do + dmfile=/mnt/etc/${i}/${j}.conf + if [ -f $dmfile ]; then + sed -e "s,^script.*,script\n\t#0x42#," \ + -e "s,#0x42#,# shutdown splashy - added by splashy plugin\n\t#0x42#," \ + -e "s,#0x42#,if [ ! -e /tmp/splashy-killed ]; then\n\t#0x42#, " \ + -e "s,#0x42#, LD_LIBRARY_PATH=/opt/openslx/uclib-rootfs/lib/ \\\\\n\t#0x42#," \ + -e "s,#0x42#, /opt/openslx/plugin-repo/bootsplash/bin/splashy_update exit \\\\\n\t#0x42#," \ + -e "s,#0x42#, 2>/dev/null \n\t#0x42#," \ + -e "s,#0x42#, touch /tmp/splashy-killed \n\t#0x42#," \ + -e "s,#0x42#,fi \n\t#0x42#," \ + -e "s,#0x42#,#splashy-stop-done#," \ + -i $dmfile 2>/dev/null & + fi + done + done fi fi fi -- cgit v1.2.3-55-g7522 From f68dec7e6bfbad68b2cf72e266865ffdbc74138c Mon Sep 17 00:00:00 2001 From: Sebastian Date: Sat, 21 Aug 2010 19:52:35 +0200 Subject: tmp is cleared after logout.. --- os-plugins/plugins/bootsplash/XX_bootsplash.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'os-plugins') diff --git a/os-plugins/plugins/bootsplash/XX_bootsplash.sh b/os-plugins/plugins/bootsplash/XX_bootsplash.sh index 8a829fc7..c405d735 100644 --- a/os-plugins/plugins/bootsplash/XX_bootsplash.sh +++ b/os-plugins/plugins/bootsplash/XX_bootsplash.sh @@ -40,11 +40,11 @@ if [ -e /initramfs/plugin-conf/bootsplash.conf ]; then if [ -f $dmfile ]; then sed -e "s,^script.*,script\n\t#0x42#," \ -e "s,#0x42#,# shutdown splashy - added by splashy plugin\n\t#0x42#," \ - -e "s,#0x42#,if [ ! -e /tmp/splashy-killed ]; then\n\t#0x42#, " \ + -e "s,#0x42#,if [ ! -e /var/run/splashy-killed ]; then\n\t#0x42#, " \ -e "s,#0x42#, LD_LIBRARY_PATH=/opt/openslx/uclib-rootfs/lib/ \\\\\n\t#0x42#," \ -e "s,#0x42#, /opt/openslx/plugin-repo/bootsplash/bin/splashy_update exit \\\\\n\t#0x42#," \ -e "s,#0x42#, 2>/dev/null \n\t#0x42#," \ - -e "s,#0x42#, touch /tmp/splashy-killed \n\t#0x42#," \ + -e "s,#0x42#, touch /var/run/splashy-killed \n\t#0x42#," \ -e "s,#0x42#,fi \n\t#0x42#," \ -e "s,#0x42#,#splashy-stop-done#," \ -i $dmfile 2>/dev/null & -- cgit v1.2.3-55-g7522