1 2 3 4 5 6
#!/bin/sh -e if [ "$1" != "upgrade" ]; then update-alternatives --remove pd /usr/bin/pd-extended update-alternatives --remove pdextended /usr/bin/pd-extended fi