Compare commits

..

1 Commits

Author SHA1 Message Date
Vorthas
8d84574c27
Merge 3ad9adf84f into e3688e9b3d 2024-10-24 16:03:51 -04:00
4 changed files with 13 additions and 50 deletions

View File

@ -1,28 +0,0 @@
#!/bin/sh -e
. ../../common-script.sh
# Function to install CUPS for printers
installCUPS() {
clear
case "$PACKAGER" in
pacman)
"$ESCALATION_TOOL" "$PACKAGER" -S --noconfirm cups
;;
apt-get | nala)
"$ESCALATION_TOOL" "$PACKAGER" install -y cups
;;
dnf)
"$ESCALATION_TOOL" "$PACKAGER" install -y cups
;;
*)
printf "%b\n" "${RED}Unsupported package manager ${PACKAGER}${RC}"
exit 1
;;
esac
}
checkEnv
checkEscalationTool
installCUPS

View File

@ -1,31 +1,29 @@
#!/bin/sh -e
. ../../common-script.sh
. ./install-cups.sh
# Function to install drivers for Epson printers
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
;;
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

View File

@ -79,12 +79,6 @@ script = "monitor-control/set_resolutions.sh"
[[data]]
name = "Printers"
[[data.entries]]
name = "Install CUPS"
script = "printers/install-cups.sh"
description = "This script will install the CUPS system, required for most printer drivers on Linux."
task_list = "I"
[[data.entries]]
name = "Install Epson printer drivers"
script = "printers/install-epson-printer-drivers.sh"

View File

@ -143,7 +143,6 @@ For more information visit: https://rpmfusion.org/
### Printers
- **Install CUPS**: This script will install the CUPS system, required for most printer drivers on Linux.
- **Install Epson printer drivers**: This script will install the Epson printer drivers.
### User Account Manager