mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-24 06:01:55 +00:00
31 lines
613 B
Bash
31 lines
613 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
|
||
|
;;
|
||
|
*)
|
||
|
printf "%b\n" "${RED}Unsupported package manager ${PACKAGER}${RC}"
|
||
|
exit 1
|
||
|
;;
|
||
|
esac
|
||
|
}
|
||
|
|
||
|
checkEnv
|
||
|
checkEscalationTool
|
||
|
checkAURHelper
|
||
|
installCUPS
|
||
|
installEpsonPrinterDriver
|