From c57bfac035170fb48d49485d1434db6533538bea Mon Sep 17 00:00:00 2001 From: Jakub Kujawa Date: Sun, 4 Feb 2024 18:16:12 +0100 Subject: [PATCH] chore(script): include printer drivers in the system image --- config/common_modules/scripts.yml | 1 + config/scripts/printer-drivers.sh | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 config/scripts/printer-drivers.sh diff --git a/config/common_modules/scripts.yml b/config/common_modules/scripts.yml index 3017b58663..acae25f07c 100644 --- a/config/common_modules/scripts.yml +++ b/config/common_modules/scripts.yml @@ -1,5 +1,6 @@ type: script scripts: - file-permissions.sh + - printer-drivers.sh - power-scheduler.sh - systemwide-themes.sh diff --git a/config/scripts/printer-drivers.sh b/config/scripts/printer-drivers.sh new file mode 100644 index 0000000000..bc33d3bfa7 --- /dev/null +++ b/config/scripts/printer-drivers.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +# Tell build process to exit if there are any errors. +set -euo pipefail + +RPM_ROOT="/tmp/rpms" + +wget -O "${RPM_ROOT}/brother-hl-1112E-CUPS.rpm" https://support.brother.com/g/b/files/dlf/dlf007073/hl1110cupswrapper-3.0.1-1.i386.rpm +wget -O "${RPM_ROOT}/brother-hl-1112E-LPR.rpm" https://support.brother.com/g/b/files/dlf/dlf007071/hl1110lpr-3.0.1-1.i386.rpm + +cd "${RPM_ROOT}" || exit + +rpm-ostree install brother-hl-1112E-CUPS.rpm brother-hl-1112E-LPR.rpm