You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.7 KiB
50 lines
1.7 KiB
![]()
16 years ago
|
#!/bin/bash
|
||
![]()
15 years ago
|
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
|
||
|
# ex: ts=8 sw=4 sts=4 et filetype=sh
|
||
![]()
16 years ago
|
PLYMOUTH_LOGO_FILE="/usr/share/pixmaps/system-logo-white.png"
|
||
![]()
16 years ago
|
PLYMOUTH_THEME=$(plymouth-set-default-theme)
|
||
![]()
16 years ago
|
|
||
![]()
16 years ago
|
inst /sbin/plymouthd /bin/plymouthd
|
||
![]()
16 years ago
|
dracut_install /bin/plymouth \
|
||
![]()
16 years ago
|
"${PLYMOUTH_LOGO_FILE}" \
|
||
![]()
14 years ago
|
/etc/system-release
|
||
![]()
16 years ago
|
|
||
![]()
14 years ago
|
mkdir -m 0755 -p "${initdir}/usr/share/plymouth"
|
||
![]()
16 years ago
|
|
||
![]()
14 years ago
|
if [[ $hostonly ]]; then
|
||
![]()
15 years ago
|
dracut_install "${usrlibdir}/plymouth/text.so" \
|
||
![]()
15 years ago
|
"${usrlibdir}/plymouth/details.so" \
|
||
|
"/usr/share/plymouth/themes/details/details.plymouth" \
|
||
|
"/usr/share/plymouth/themes/text/text.plymouth" \
|
||
![]()
16 years ago
|
|
||
![]()
16 years ago
|
if [[ -d /usr/share/plymouth/themes/${PLYMOUTH_THEME} ]]; then
|
||
![]()
15 years ago
|
for x in "/usr/share/plymouth/themes/${PLYMOUTH_THEME}"/* ; do
|
||
![]()
16 years ago
|
[[ -f "$x" ]] || break
|
||
|
inst $x
|
||
![]()
15 years ago
|
done
|
||
![]()
16 years ago
|
fi
|
||
|
|
||
|
if [ -L /usr/share/plymouth/themes/default.plymouth ]; then
|
||
![]()
15 years ago
|
inst /usr/share/plymouth/themes/default.plymouth
|
||
![]()
16 years ago
|
# Install plugin for this theme
|
||
![]()
15 years ago
|
PLYMOUTH_PLUGIN=$(grep "^ModuleName=" /usr/share/plymouth/themes/default.plymouth | while read a b c; do echo $b; done;)
|
||
|
inst "${usrlibdir}/plymouth/${PLYMOUTH_PLUGIN}.so"
|
||
![]()
16 years ago
|
fi
|
||
|
else
|
||
![]()
16 years ago
|
for x in /usr/share/plymouth/themes/{text,details}/* ; do
|
||
![]()
16 years ago
|
[[ -f "$x" ]] || continue
|
||
![]()
15 years ago
|
THEME_DIR=$(dirname "$x")
|
||
![]()
14 years ago
|
mkdir -m 0755 -p "${initdir}/$THEME_DIR"
|
||
![]()
16 years ago
|
dracut_install "$x"
|
||
|
done
|
||
![]()
15 years ago
|
for x in "${usrlibdir}"/plymouth/{text,details}.so ; do
|
||
![]()
16 years ago
|
[[ -f "$x" ]] || continue
|
||
![]()
16 years ago
|
[[ "$x" != "${x%%/label.so}" ]] && continue
|
||
![]()
16 years ago
|
dracut_install "$x"
|
||
|
done
|
||
|
(
|
||
![]()
15 years ago
|
cd ${initdir}/usr/share/plymouth/themes;
|
||
![]()
14 years ago
|
ln -s text/text.plymouth default.plymouth 2>&1;
|
||
![]()
16 years ago
|
)
|
||
![]()
16 years ago
|
fi
|