blob: 4c4dd98d4c88318767dffb1116bbde1e5e9aecbb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
_check_and_install_printer() {
# The command checks if the printer is already installed
lpstat -v boomaga &> /dev/null
RESULT=$?
if [ "${RESULT}" -ne 0 ]; then
echo "Install the Boomaga printer using the installPrinter.sh script"
/usr/bin/installPrinter.sh
else
echo "Boomaga printer is already installed"
fi
}
post_install() {
_check_and_install_printer $1
}
post_upgrade() {
_check_and_install_printer $1
}
|