source: lliurex-artwork-defaults/trunk/fuentes/debian/lliurex-artwork-defaults-aula.prerm @ 5895

Last change on this file since 5895 was 5895, checked in by hectorgh, 2 years ago

adding libreoffice fix to remove file locking functionality

File size: 708 bytes
Line 
1#!/bin/bash
2
3set -e
4
5
6if [ "$1" = "remove" ] ; then
7       
8        update-alternatives \
9                --remove  lliurex-default-background.png  /usr/share/backgrounds/lliurex/lliurex16-classroom-HD.png
10
11        update-alternatives --auto lliurex-default-background.png
12
13
14        PKG="lliurex-artwork-defaults-aula"
15
16        ORIGINAL_LO_FILE="/usr/bin/libreoffice"
17        NEW_DIVERTED_LO_FILE="/usr/bin/libreoffice.diverted"
18        LLIUREX_FILE="/usr/bin/libreoffice-nolock"
19
20        if [ -L "$ORIGINAL_LO_FILE" ]; then
21                rm -rf "$ORIGINAL_LO_FILE" || true
22                dpkg-divert --remove --package ${PKG} --rename --divert "$NEW_DIVERTED_LO_FILE" "$ORIGINAL_LO_FILE"
23
24        fi
25
26fi
27#DEBHELPER#
28
29exit 0
Note: See TracBrowser for help on using the repository browser.