uninstall_mpt() { if [ $(dpkg -l|grep -c mpt-status) -gt 0 ]; then echo "#" echo "# mpt-status package detected." echo "# While this script does not attempt to detect whether this makes sense," echo "# it does not think so, as most likely this satellite server will run within" echo "# a virtual machine. So we uninstall it to keep it from spamming our log files." uninstall_packages mpt-status fi }