Sophie

Sophie

distrib > Mageia > cauldron > x86_64 > media > core-release > by-pkgid > efcfd5189a0a1fba35ab3777ec8eb30e > scriptlet

mageia-theme-8.0-3.mga9.noarch.rpm

PREUN

/bin/sh
if [ "$1" == "0" ]; then
  if [ -x /usr/share/bootsplash/scripts/remove-theme ]; then
    /usr/share/bootsplash/scripts/remove-theme Mageia-Default
  fi
  for symlink in default.jpg default.png; do
    link=`readlink /usr/share/mga/backgrounds/$symlink`
    slink=${link%-*}
    if [ "$slink" == "Mageia-Default" ]; then rm -f /usr/share/mga/backgrounds/$symlink; fi
  done
fi
/usr/share/rpm-helper/del-service mageia-theme $1 mga-bg-res

POSTTRANS

/bin/sh
if [ -z "$DURING_INSTALL" ]; then
  if [ -x /usr/share/bootsplash/scripts/switch-themes ]; then
    /usr/share/bootsplash/scripts/switch-themes Mageia-Default
  fi
else
  if [ -f /etc/sysconfig/bootsplash ]; then
    perl -pi -e 's/^\s*SPLASH=.*/SPLASH=auto/; s/^\s*THEME=.*/THEME=Mageia-Default/' /etc/sysconfig/bootsplash
  fi
  /usr/sbin/plymouth-set-default-theme Mageia-Default
fi
/usr/share/rpm-helper/add-service mageia-theme $1 mga-bg-res 

# plymouth-set-default-theme defaults to 4:3 on update so fix it.
/usr/libexec/mga-bg-res > /dev/null 2>&1