summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/Theme/XX_Theme.sh
diff options
context:
space:
mode:
Diffstat (limited to 'os-plugins/plugins/Theme/XX_Theme.sh')
-rw-r--r--os-plugins/plugins/Theme/XX_Theme.sh9
1 files changed, 6 insertions, 3 deletions
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