#!/bin/sh
if test $(id -u) != 0; then
 echo Error: You must be root to run this script!
 exit 1
fi
apt-get update
apt-get remove --yes --purge splashy libsplashy1
rm -rf /etc/splashy
apt-get --yes install kanotix-graphics
[ -d /etc/splashy/themes/KanotixPenguins ] && splashy_config -s KanotixPenguins
[ -d /etc/splashy/themes/Kanotix64Penguins ] && splashy_config -s Kanotix64Penguins
[ -d /var/lib/initramfs-tools ] && rm -f /var/lib/initramfs-tools/*
rm -f /boot/initrd*
for k in $(ls /boot/vmlinuz-* 2>/dev/null|sed 's|/boot/vmlinuz-||'); do
 update-initramfs -c -k $k
done
