| 1 |
#!/bin/sh -e |
| 2 |
|
| 3 |
#DEBHELPER# |
| 4 |
|
| 5 |
set -e |
| 6 |
|
| 7 |
case "$1" in |
| 8 |
configure) |
| 9 |
|
| 10 |
# Force unlock of the graphical sessions in case kscreenlocker starts |
| 11 |
# during upgrade. |
| 12 |
# A kscreenlocker_greet started in Plasma 5.9 won't be able to unlock |
| 13 |
# with a kcheckpass from Plasma 5.10 |
| 14 |
command -v loginctl > /dev/null && loginctl unlock-sessions || true |
| 15 |
;; |
| 16 |
|
| 17 |
abort-upgrade|abort-deconfigure|abort-remove) |
| 18 |
;; |
| 19 |
|
| 20 |
*) |
| 21 |
echo "$0 called with unknown argument \`$1'" 1>&2 |
| 22 |
exit 1 |
| 23 |
;; |
| 24 |
esac |
| 25 |
|
| 26 |
exit 0 |