#!/bin/sh
# ESP Package Manager v3.7.0
#rm /usr/bin/brpapertoollpr_ql800
rm -rf /opt/brother/PTouch/ql800/inf/customtape
if [ -e /etc/init.d/lprng ]; then
/etc/init.d/lprng restart
elif [ -e /etc/init.d/lpd ]; then
/etc/init.d/lpd restart
fi
if [ "$(which semanage 2> /dev/null)" != '' ];then
semanage fcontext -d -t cupsd_rw_etc_t '/opt/brother/PTouch/ql800/inf(/.*)?'
semanage fcontext -d -t bin_t          '/opt/brother/PTouch/ql800/lpd(/.*)?'
semanage fcontext -d -t bin_t          '/opt/brother/PTouch/ql800/cupswrapper(/.*)?'
if [ "$(which restorecon 2> /dev/null)" != '' ];then
restorecon -R /opt/brother/PTouch/ql800
fi
fi
if [ -e /etc/init.d/cups ]; then
/etc/init.d/cups restart
fi
rm -f /tmp/ql800_latest_print_info
