Last change
on this file since 4809 was
4809,
checked in by mabarracus, 4 years ago
|
Set lightdm background to work with debian alternatives system
|
File size:
654 bytes
|
Rev | Line | |
---|
[2295] | 1 | #!/bin/sh |
---|
| 2 | |
---|
| 3 | set -e |
---|
| 4 | |
---|
| 5 | PACKAGE_NAME="lliurex-lightdm-theme" |
---|
| 6 | ORIGINAL_FILE="/etc/lightdm/lightdm-gtk-greeter.conf.d/99_ubuntu-mate.conf" |
---|
[2300] | 7 | DIVERT_FILE="/usr/share/lliurex-lightdm-theme/diversions/99_ubuntu-mate.diverted" |
---|
[2295] | 8 | |
---|
| 9 | case "$1" in |
---|
| 10 | configure) |
---|
| 11 | |
---|
[4809] | 12 | if [ ! -r ${DIVERT_FILE} ] ; then |
---|
[2295] | 13 | dpkg-divert --package ${PACKAGE_NAME} --rename --quiet --add --divert ${DIVERT_FILE} ${ORIGINAL_FILE} |
---|
| 14 | fi |
---|
[4809] | 15 | update-alternatives --install /usr/share/backgrounds/lliurex/lightdm-bg.png lightdm-bg /usr/share/backgrounds/lliurex/lliurex-blueprint.png 50 |
---|
[2295] | 16 | ;; |
---|
| 17 | |
---|
| 18 | abort-upgrade|abort-remove|abort-deconfigure) |
---|
| 19 | ;; |
---|
| 20 | |
---|
| 21 | *) |
---|
| 22 | exit 1 |
---|
| 23 | ;; |
---|
| 24 | esac |
---|
| 25 | |
---|
| 26 | #DEBHELPER# |
---|
| 27 | |
---|
| 28 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.