From 89844d4e5ced66163b16519efbe4c5198f05786c Mon Sep 17 00:00:00 2001 From: Michael Janczyk Date: Thu, 24 Jan 2008 18:08:09 +0000 Subject: 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 --- os-plugins/plugins/Theme/XX_Theme.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'os-plugins/plugins') 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 -- cgit v1.2.3-55-g7522