blob: 135678e85d7f8a913604922dc6f4898d5b4f4f43 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#!/bin/sh
set -e
case "${1}" in
configure)
. /usr/share/debconf/confmodule
db_get powerline/enable
POWERLINE_ENABLE="${RET}" # boolean
db_stop
rm -f /etc/profile.d/zz-powerline.sh
for ENABLE in $(echo ${POWERLINE_ENABLE} | sed -e 's|,| |g')
do
case "${ENABLE}" in
bash)
ln -sf /usr/share/powerline/integrations/powerline.sh /etc/profile.d/zz-powerline.sh
;;
esac
done
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`${1}'" >&2
exit 1
;;
esac
#DEBHELPER#
exit 0
|