-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: printer driver installation (#837)
* Add basic script to install Epson printer drivers in Arch, Debian, and Fedora. * Add I to the task_list for this script. * Update core/tabs/utils/printers/install-epson-printer-drivers.sh Co-authored-by: JEEVITHA KANNAN K S <[email protected]> * Update userguide.md based on adam's documentation update. * Add description to tab_data.toml for the printer addition. * Fix typo, oops. * Actually generate the updated userguide. * Add installation of CUPS as a pre-requisite for Epson printer drivers as well as standalone script for other printer drivers to be added in the future. * Update core/tabs/utils/printers/install-cups.sh Co-authored-by: Adam Perkowski <[email protected]> * Update core/tabs/utils/printers/install-epson-printer-drivers.sh Co-authored-by: Adam Perkowski <[email protected]> * Update core/tabs/utils/tab_data.toml Co-authored-by: Adam Perkowski <[email protected]> * Update core/tabs/utils/tab_data.toml Co-authored-by: Adam Perkowski <[email protected]> * Update docs after changes. --------- Co-authored-by: JEEVITHA KANNAN K S <[email protected]> Co-authored-by: Adam Perkowski <[email protected]>
- Loading branch information
1 parent
9f08637
commit b36a7df
Showing
4 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/sh -e | ||
|
||
. ../../common-script.sh | ||
|
||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters