#!/bin/sh set -e install_alternative() { test -n "$1" || continue test -n "$2" || continue FILENAME="$1" PRIORITY="$2" test -e "/usr/bin/$FILENAME" || continue update-alternatives --install \ /usr/bin/mp3-decoder mp3-decoder "/usr/bin/$FILENAME" \ "$PRIORITY" \ --slave /usr/share/man/man1/mp3-decoder.1.gz \ mp3-decoder.1.gz \ "/usr/share/man/man1/$FILENAME.1.gz" } case "$1" in configure) # Install generic binary as the only alternative. install_alternative mpg123 20 ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \'$1\'" >&2 exit 0 esac #DEBHELPER# exit 0