summaryrefslogtreecommitdiffstats
path: root/initrd/mkdxsinitrd
diff options
context:
space:
mode:
Diffstat (limited to 'initrd/mkdxsinitrd')
-rwxr-xr-xinitrd/mkdxsinitrd13
1 files changed, 7 insertions, 6 deletions
diff --git a/initrd/mkdxsinitrd b/initrd/mkdxsinitrd
index acab08e8..4e151ae0 100755
--- a/initrd/mkdxsinitrd
+++ b/initrd/mkdxsinitrd
@@ -7,12 +7,12 @@
# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 03-09-2006
# Nico Dietrich
# Felix Endres
-# mj0, 08-09-2006
+# mj0, 12-09-2006 theming added
#
# Copyright: (c) 2003 - 2006 - RZ Universitaet Freiburg
# (c) 2006 - openslx.org project
#
-# Version: 0.4.5c
+# Version: 0.4.5d
# debug level of script itself
DEBUG=1
@@ -236,8 +236,8 @@ splash_bin=$(chroot $ROOTDIR which splash)
if [ -n "$splashsizes" -a -n "$splash_bin" ]; then
themes_dir="../theming/openslx/bootsplash"
- if [ -d "/usr/share/openslx/themes/${theme}/bootsplash" ]; then
- themes_dir="/usr/share/openslx/themes/${theme}/bootsplash"
+ if [ -d "/opt/openslx/share/themes/${theme}/bootsplash" ]; then
+ themes_dir="/opt/openslx/share/themes/${theme}/bootsplash"
elif [ -d "$ROOTDIR/etc/bootsplash/themes/${theme}" ]; then
themes_dir="/etc/bootsplash/themes/${theme}"
elif [ -d "$ROOTDIR/usr/share/splash/themes/${theme}" ]; then
@@ -246,7 +246,8 @@ if [ -n "$splashsizes" -a -n "$splash_bin" ]; then
#fixme: very ugly ;)
mkdir -p $ROOTDIR/tmp/bootsplash
- cp -a $themes_dir/* $ROOTDIR/tmp/bootsplash/
+ cp -a $themes_dir/* $ROOTDIR/tmp/bootsplash
+ themes=${themes_dir}
themes_dir=$ROOTDIR/tmp/bootsplash
if [ -n "$themes_dir" -a \
@@ -278,7 +279,7 @@ done
rm -rf $ROOTDIR/tmp/bootsplash
# kdm/Xdialog theme
-cp -a ../theming/${theme}/* ${INSTDIR}/usr/share/themes
+cp -a ${themes%bootsplash}* ${INSTDIR}/usr/share/themes
}