PREIN
/bin/sh
# Start cups if is stopped if [ "$(systemctl is-active cups.service)" != "active" ]; then systemctl start cups sleep 2 fi
PREUN
/bin/sh
# Uninstall the printer lpadmin -x "Boomaga"
POSTIN
/bin/sh
# Install the printer to cups backends if [ $1 = 1 ]; then sh /usr/share/boomaga/scripts/installPrinter.sh fi