Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-updates > by-pkgid > a65feb89c3d22633ad8dfc45f368c470 > scriptlet

boomaga-3.0.0-1.mga7.armv7hl.rpm

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