summaryrefslogtreecommitdiffstats
path: root/initrd/mkdxsinitrd
diff options
context:
space:
mode:
author(no author)2006-09-12 16:51:00 +0200
committer(no author)2006-09-12 16:51:00 +0200
commit68f83408cab2a524b7bd5fb66a9518e5b0abc3f9 (patch)
tree0e3ebcdf7e1073f4a3e10450c4ecaad0444192fa /initrd/mkdxsinitrd
parent* added path-abstraction via ENV-vars (diff)
downloadcore-68f83408cab2a524b7bd5fb66a9518e5b0abc3f9.tar.gz
core-68f83408cab2a524b7bd5fb66a9518e5b0abc3f9.tar.xz
core-68f83408cab2a524b7bd5fb66a9518e5b0abc3f9.zip
theming should work now. bad hack, but works ok for first relase ;)
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@371 95ad53e4-c205-0410-b2fa-d234c58c8868
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
}