summaryrefslogtreecommitdiffstats
path: root/debian/lunzip.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/lunzip.postinst')
-rwxr-xr-xdebian/lunzip.postinst6
1 files changed, 6 insertions, 0 deletions
diff --git a/debian/lunzip.postinst b/debian/lunzip.postinst
index 9e7208e..4c02908 100755
--- a/debian/lunzip.postinst
+++ b/debian/lunzip.postinst
@@ -4,9 +4,15 @@ set -e
case "${1}" in
configure)
+ # lzip-alternative
update-alternatives --quiet \
--install /usr/bin/lzip lzip /usr/bin/lzip.lunzip -1000 \
--slave /usr/share/man/man1/lzip.1.gz lzip.1.gz /usr/share/man/man1/lzip.lunzip.1.gz
+
+ # lzip-decompressor
+ update-alternatives --quiet \
+ --install /usr/bin/lzip-decompressor lzip-decompressor /usr/bin/lzip.lunzip -1000 \
+ --slave /usr/share/man/man1/lzip-decompressor.1.gz lzip-decompressor.1.gz /usr/share/man/man1/lzip.lunzip.1.gz
;;
abort-upgrade|abort-remove|abort-deconfigure)