SHARE
TWEET

plymouth.install

a guest Sep 18th, 2013 62 Never
  1. build() {
  2.     add_binary /usr/bin/plymouthd
  3.     add_binary /usr/bin/plymouth
  4.     add_file /etc/plymouth/plymouthd.conf
  5.  
  6.     add_binary /usr/lib/plymouth/details.so
  7.     add_full_dir /usr/share/plymouth/themes/details
  8.  
  9.     add_binary /usr/lib/plymouth/renderers/drm.so
  10.     add_binary /usr/lib/plymouth/renderers/frame-buffer.so
  11.  
  12.     PLYMOUTH_THEME_NAME=$(grep "Theme *= *" /etc/plymouth/plymouthd.conf | grep -v '#' | sed 's/Theme *= *//')
  13.     if [ "$PLYMOUTH_THEME_NAME" = "" -o ! -d /usr/share/plymouth/themes/${PLYMOUTH_THEME_NAME} ]; then
  14.         PLYMOUTH_THEME_NAME=details
  15.     fi
  16.     PLYMOUTH_MODULE_NAME=$(grep "ModuleName *= *" /usr/share/plymouth/themes/${PLYMOUTH_THEME_NAME}/${PLYMOUTH_THEME_NAME}.plymouth | sed 's/ModuleName *= *//')
  17.  
  18.     add_binary /usr/lib/plymouth/${PLYMOUTH_MODULE_NAME}.so
  19.     add_full_dir /usr/share/plymouth/themes/${PLYMOUTH_THEME_NAME}
  20.  
  21.     if [ "$PLYMOUTH_MODULE_NAME" != "text" -a "$PLYMOUTH_MODULE_NAME" != "details" ]; then
  22.         add_binary /usr/lib/plymouth/label.so
  23.     fi
  24.  
  25.     add_file /usr/share/plymouth/bizcom.png
  26.     add_file /usr/share/plymouth/plymouthd.defaults
  27.  
  28.     add_runscript
  29. }
RAW Paste Data
Top