2015-08-20 14:37:06 -06:00
|
|
|
#!/bin/bash
|
|
|
|
. ./lib
|
|
|
|
|
|
|
|
options=()
|
|
|
|
options+=("cups" "Print support" on)
|
|
|
|
options+=("ghostscript" "" on)
|
|
|
|
options+=("cups-pdf" "" on)
|
|
|
|
options+=("hplip" "" off)
|
|
|
|
options+=("gutenprint" "" off)
|
|
|
|
options+=("foomatic-db" "" off)
|
|
|
|
options+=("foomatic-db-engine" "" off)
|
|
|
|
options+=("foomatic-db-nonfree" "" off)
|
2018-09-29 19:35:11 -06:00
|
|
|
options+=("foomatic-db-ppds" "" off)
|
|
|
|
options+=("foomatic-db-gutenprint-ppds" "" off)
|
|
|
|
options+=("foomatic-db-nonfree-ppds" "" off)
|
2015-08-20 14:37:06 -06:00
|
|
|
#options+=("system-config-printer" "" off)
|
|
|
|
|
2022-11-10 14:27:23 -07:00
|
|
|
sel=$(dialog --backtitle "$apptitle" --title "System Print Install" --cancel-button "Back" --checklist "" 0 0 0 \
|
2015-08-20 14:37:06 -06:00
|
|
|
"${options[@]}" \
|
|
|
|
3>&1 1>&2 2>&3)
|
|
|
|
if [ ! "$?" = "0" ]; then
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
for itm in $sel; do
|
|
|
|
pkg="$pkg $(echo $itm | sed 's/"//g')"
|
|
|
|
done
|
|
|
|
|
|
|
|
instpkg "$pkg" "$aurpkg"
|
|
|
|
|
|
|
|
for itm in $sel; do
|
|
|
|
case $itm in
|
2022-11-10 14:27:23 -07:00
|
|
|
"cups") svcenable cups.service cups;;
|
|
|
|
"cups-pdf")
|
2015-08-20 14:37:06 -06:00
|
|
|
#if (confirm "Add a PDF Printer ?") then
|
|
|
|
|
|
|
|
#fi
|
|
|
|
#Redirect target folder
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
|
|
|
exit 0
|