1 2 3 4 5 6
#!/bin/sh if [ x"${1}" = x'remove' ] || [ x"${1}" = x'purge' ] || [ x"${1}" = x'upgrade' ] then update-alternatives --remove /usr/bin/dialog /usr/bin/dialog.ncurses fi