2 # geninitrd mod: condecor
3 FB_CON_DECOR=${FB_CON_DECOR:-no}
5 # requires splashutils package to operate
7 # setup geninitrd module
10 condecor_geninitramfs=$(find_tool /usr/sbin/splash_geninitramfs /usr/bin/splash_geninitramfs)
11 if [ ! -x "$condecor_geninitramfs" ]; then
15 if is_yes "$FB_CON_DECOR" && [ "$INITRDFS" != "initramfs" ]; then
16 warn "Using fbcondecor requires INITRDFS=initramfs; skipping fbcondecor generation"
21 # generate initrd fragment
23 initrd_gen_fbcondecor() {
24 if ! is_yes "$FB_CON_DECOR"; then
27 verbose "Generating fbcondecor"
29 if [ -r /etc/sysconfig/splash ]; then
30 . /etc/sysconfig/splash
33 if [ -z "$SPLASH_THEME" ]; then
34 warn "Please configure your /etc/sysconfig/splash first."
35 warn "Generating of splashes skipped."
39 if [ -z "$FB_SPLASH_RESOLUTIONS" ]; then
40 warn "No FB_SPLASH_RESOLUTIONS specified in /etc/sysconfig/splash."
41 warn "Not adding fbcondecor to initramfs."
46 for res in $FB_SPLASH_RESOLUTIONS; do
47 if [ -f "/etc/splash/$SPLASH_THEME/$res.cfg" ]; then
48 $condecor_geninitramfs -c $DESTDIR -r $res $SPLASH_THEME && \
49 verbose "Added $res $SPLASH_THEME theme to initramfs."
51 warn "/etc/splash/$SPLASH_THEME/$res.cfg doesn't exist, skipped"