summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/bootsplash/XX_bootsplash.sh
diff options
context:
space:
mode:
authorMichael Janczyk2008-03-27 18:03:55 +0100
committerMichael Janczyk2008-03-27 18:03:55 +0100
commitc732cc5cd3b18c13908deb1dfdc0343fd4135a2f (patch)
tree49d07c319c0da61b56b61923f8db3bf279f399e9 /os-plugins/plugins/bootsplash/XX_bootsplash.sh
parent* Changed check of syscall from die() to warn() in order to let the caller (diff)
downloadcore-c732cc5cd3b18c13908deb1dfdc0343fd4135a2f.tar.gz
core-c732cc5cd3b18c13908deb1dfdc0343fd4135a2f.tar.xz
core-c732cc5cd3b18c13908deb1dfdc0343fd4135a2f.zip
New plugin concept: Default theme and splashy binaries moved to plugin. Makefile modified: removed copy of splashy, theme dir shouldn't be copied either after display theme and pxe theme have been moved as well. Added support of own themes in config-path/plugins/bootsplash/themes. New init-hooks added, not really necessary. A few cosmetic corrections ->styleguide
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1702 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/bootsplash/XX_bootsplash.sh')
-rw-r--r--os-plugins/plugins/bootsplash/XX_bootsplash.sh33
1 files changed, 16 insertions, 17 deletions
diff --git a/os-plugins/plugins/bootsplash/XX_bootsplash.sh b/os-plugins/plugins/bootsplash/XX_bootsplash.sh
index 4a27dafa..10a3abc2 100644
--- a/os-plugins/plugins/bootsplash/XX_bootsplash.sh
+++ b/os-plugins/plugins/bootsplash/XX_bootsplash.sh
@@ -6,21 +6,20 @@
. /etc/distro-functions
. /etc/sysconfig/config
if [ -e /initramfs/plugin-conf/bootsplash.conf ]; then
- . /initramfs/plugin-conf/bootsplash.conf
- if [ $bootsplash_active -ne 0 ]; then
- if [ ${no_bootsplash} -eq 0 ]; then
- # make the splashy_update binary available in stage4 ...
- testmkd /mnt/var/lib/openslx/bin
- cp -a /bin/splashy_update /mnt/var/lib/openslx/bin
-
- # ... and create a runlevelscript that will stop splashy somewhere near
- # the end of stage4
- d_mkrlscript init splashy.stop "Stopping Splashy ..."
- echo -e "\t/var/lib/openslx/bin/splashy_update exit 2>/dev/null \
- \n\ttype killall >/dev/null 2>&1 && killall -9 splashy \
- \n\trm -f /var/lib/openslx/bin/splashy_update 2>/dev/null" \
- >>/mnt/etc/${D_INITDIR}/splashy.stop
- d_mkrlscript close splashy.stop ""
- fi
- fi
+ . /initramfs/plugin-conf/bootsplash.conf
+ if [ $bootsplash_active -ne 0 ]; then
+ if [ ${no_bootsplash} -eq 0 ]; then
+ # make the splashy_update binary available in stage4 ...
+ testmkd /mnt/var/lib/openslx/bin
+ cp -a /bin/splashy_update /mnt/var/lib/openslx/bin
+ # ... and create a runlevelscript that will stop splashy somewhere near
+ # the end of stage4
+ d_mkrlscript init splashy.stop "Stopping Splashy ..."
+ echo -e "\t/var/lib/openslx/bin/splashy_update exit 2>/dev/null \
+ \n\ttype killall >/dev/null 2>&1 && killall -9 splashy \
+ \n\trm -f /var/lib/openslx/bin/splashy_update 2>/dev/null" \
+ >>/mnt/etc/${D_INITDIR}/splashy.stop
+ d_mkrlscript close splashy.stop ""
+ fi
+ fi
fi