Commit a711caa5 authored by Maxime Accadia's avatar Maxime Accadia
Browse files

Paquet deb fonctionnel

parent f84a921a
......@@ -4,5 +4,6 @@ Section: custom
Priority: optional
Architecture: all
Essential: no
Suggest: plymouth-theme-spinner
Maintainer: maxime.accadia@univ-grenoble-alpes.fr
Description: Fonds d'écran et éléments de design UGA pour Linux
#!/bin/bash
sed -i 's%^#logo=.*%logo="/usr/share/pixmaps/logo.png"%'
update-initramfs -u
case "$1" in
configure)
sed -i 's%^#logo=.*%logo="/usr/share/pixmaps/logo.png"%' /etc/gdm3/greeter.dconf-defaults
if which update-initramfs >/dev/null 2>&1
then
update-initramfs -u
fi
;;
abort-upgrade|abort-deconfigure|abort-remove)
;;
*)
echo "$0 called with unknown argument \`$1'" 1>&2
exit 1
;;
esac
exit 0
#!/bin/bash
LEGACY_LOGO="/usr/share/plymouth/ubuntu-logo.png"
sed -i 's%^logo=.*%#logo="/usr/share/pixmaps/logo.png"%'
update-initramfs -u
case "${1}" in
remove)
if [ -f "${LEGACY_LOGO}.backup" ]; then
mv "${LEGACY_LOGO}.backup" "${LEGACY_LOGO}"
fi
sed -i 's%^logo=.*%#logo="/usr/share/pixmaps/logo.png"%' /etc/gdm3/greeter.dconf-defaults
if which update-initramfs >/dev/null 2>&1; then
update-initramfs -u
fi
;;
purge)
;;
upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
;;
*)
echo "postrm called with unknown argument \`${1}'" >&2
exit 1
;;
esac
......@@ -6,7 +6,7 @@ FAKEROOT="$(pwd)/design-linux-uga"
rm -rf "$FAKEROOT"
mkdir -p "$FAKEROOT/usr/share/backgrounds/uga"
mkdir -p "$FAKEROOT/usr/share/initramfs-tools/"
mkdir -p "$FAKEROOT/usr/share/initramfs-tools/conf-hooks.d"
mkdir -p "$FAKEROOT/usr/share/gnome-background-properties/"
mkdir -p "$FAKEROOT/usr/share/plymouth"
mkdir -p "$FAKEROOT/usr/share/pixmaps"
......
......@@ -4,9 +4,13 @@
# Place this file in /usr/share/initramfs-tools/conf-hooks.d/
# Place your logo in `/usr/share/plymouth/logo.png` to replace the Ubuntu logo
# This is a hack : we use a conf-hook instead of normal hook because hooks
# run without order and this should run before the plymouth hook.
LOGO_PNG="/usr/share/plymouth/logo.png"
LEGACY_LOGO="/usr/share/plymouth/ubuntu-logo.png"
if [ -f "${LOGO_PNG}" ]; then
test -f "${LEGACY_LOGO}" && cp --backup "${LOGO_PNG}" "${LEGACY_LOGO}"
if [ -f "${LEGACY_LOGO}" -a -f "${LOGO_PNG}" ]; then
mv "${LEGACY_LOGO}" "${LEGACY_LOGO}.backup"
cp --backup "${LOGO_PNG}" "${LEGACY_LOGO}"
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment