diff options
author | Michael Janczyk | 2008-01-24 19:08:09 +0100 |
---|---|---|
committer | Michael Janczyk | 2008-01-24 19:08:09 +0100 |
commit | 89844d4e5ced66163b16519efbe4c5198f05786c (patch) | |
tree | ba6af950161be3bcc5e021f9905af4a3f95980ae | |
parent | Added needed parameter in the short documentation. (diff) | |
download | core-89844d4e5ced66163b16519efbe4c5198f05786c.tar.gz core-89844d4e5ced66163b16519efbe4c5198f05786c.tar.xz core-89844d4e5ced66163b16519efbe4c5198f05786c.zip |
BUGFIX: kdm theme works now, we hope;), moved theme to plugin
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1490 95ad53e4-c205-0410-b2fa-d234c58c8868
-rw-r--r-- | initramfs/initrd-stuff/etc/functions | 5 | ||||
-rw-r--r-- | os-plugins/plugins/Theme/XX_Theme.sh | 9 |
2 files changed, 7 insertions, 7 deletions
diff --git a/initramfs/initrd-stuff/etc/functions b/initramfs/initrd-stuff/etc/functions index 577bf9b8..7b6f127e 100644 --- a/initramfs/initrd-stuff/etc/functions +++ b/initramfs/initrd-stuff/etc/functions @@ -922,9 +922,6 @@ include_in_fsroot_union () { # kdmrc template started from distro specific functions files config_kdm_template () { -usetheme=false -themeconf=$(ls /mnt/var/lib/openslx/themes/displaymanager/*.xml 2>/dev/null) -[ -r "${themeconf}" ] && usetheme=true # check if a kdmrc was provided via ConfTGZ [ -f /rootfs/${kdmrcdir}/kdmrc ] || \ echo -e "# ${kdmrcdir}/kdmrc - \ @@ -978,7 +975,7 @@ AntiAliasing=true Language=$lang EchoMode=OneStar ShowLog=false -UseTheme=${usetheme} +UseTheme=false Theme=/var/lib/openslx/themes/displaymanager UseBackground=true BackgroundCfg=/var/lib/openslx/themes/displaymanager/backgroundrc diff --git a/os-plugins/plugins/Theme/XX_Theme.sh b/os-plugins/plugins/Theme/XX_Theme.sh index e0a6985f..dc429652 100644 --- a/os-plugins/plugins/Theme/XX_Theme.sh +++ b/os-plugins/plugins/Theme/XX_Theme.sh @@ -2,6 +2,7 @@ # # stage3 part of 'Theme' plugin - the runlevel script # +. /etc/distro-functions if [ -e /initramfs/plugin-conf/Theme.conf ]; then . /initramfs/plugin-conf/Theme.conf if [ $Theme_active -ne 0 ]; then @@ -9,9 +10,11 @@ if [ -e /initramfs/plugin-conf/Theme.conf ]; then testmkd /mnt/var/lib/openslx/themes/displaymanager testmkd /mnt/var/lib/openslx/bin - [ -d /usr/share/themes/displaymanager ] \ - && cp -a /usr/share/themes/displaymanager \ - /mnt/var/lib/openslx/themes + 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/${kdmrcdir}/kdmrc + fi [ $DEBUGLEVEL -gt 0 ] && echo "done with 'Theme' os-plugin ..."; fi |