mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2025-01-31 14:45:44 +00:00
34 lines
710 B
Bash
34 lines
710 B
Bash
#!/bin/sh -e
|
|
|
|
. ../../common-script.sh
|
|
. ./install-cups.sh
|
|
|
|
installEpsonPrinterDriver() {
|
|
clear
|
|
|
|
case "$PACKAGER" in
|
|
pacman)
|
|
"$AUR_HELPER" -S --noconfirm epson-inkjet-printer-escpr
|
|
;;
|
|
apt-get|nala)
|
|
"$ESCALATION_TOOL" "$PACKAGER" install -y printer-driver-escpr
|
|
;;
|
|
dnf)
|
|
"$ESCALATION_TOOL" "$PACKAGER" install -y epson-inkjet-printer-escpr
|
|
;;
|
|
xbps-install)
|
|
"$ESCALATION_TOOL" "$PACKAGER" -y epson-inkjet-printer-escpr
|
|
;;
|
|
*)
|
|
printf "%b\n" "${RED}Unsupported package manager ${PACKAGER}${RC}"
|
|
exit 1
|
|
;;
|
|
esac
|
|
}
|
|
|
|
checkEnv
|
|
checkEscalationTool
|
|
checkAURHelper
|
|
installCUPS
|
|
installEpsonPrinterDriver
|