Last change
on this file since 3671 was
3671,
checked in by jrpelegrina, 4 years ago
|
WIP in swing properties divert
|
File size:
594 bytes
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | set -e |
---|
4 | |
---|
5 | #VARS |
---|
6 | SWING_FILE_OPENJDK8="/etc/java-8-openjdk/swing.properties" |
---|
7 | SWING_FILE_LLIUREX="/usr/share/lliurex-java-panel/swing.properties" |
---|
8 | PACKAGE_NAME="lliurex-java-panel" |
---|
9 | |
---|
10 | case "$1" in |
---|
11 | configure) |
---|
12 | if dpkg-divert --add --package ${OUR_PACKAGE} --rename --divert ${SWING_FILE_OPENJDK8}.real ${SWING_FILE_OPENJDK8} ; then |
---|
13 | ln -fs ${SWING_FILE_LLIUREX} ${SWING_FILE_OPENJDK8} |
---|
14 | else |
---|
15 | echo "Unable to divert file \"$SWING_FILE_OPENJDK8\"" >&2 |
---|
16 | fi |
---|
17 | |
---|
18 | ;; |
---|
19 | |
---|
20 | abort-upgrade|abort-remove|abort-deconfigure) |
---|
21 | ;; |
---|
22 | |
---|
23 | *) |
---|
24 | exit 1 |
---|
25 | ;; |
---|
26 | esac |
---|
27 | |
---|
28 | #DEBHELPER# |
---|
Note: See
TracBrowser
for help on using the repository browser.